-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Episode does not exist" Displayed when clicking on otherwise completely functional episode through /admin/episodes_list.php menu #691
Comments
Just discovered the apostrophe in the title may be to blame as the link to this episode on /admin/episodes_list.php cuts off after the apostrophe as if it was not escaped or something? Strange as other podcast episodes with the apostrophe in the title haven't suffered the same issue; This also appears to be the only episode where the title of the episode is the filename instead of 2022-07-19_episode_104.xml or 2022-07-19_episode_106.xml this episodes files within the media file appear to named as "2022-08-16_title_of_episode.xml" |
Is there any solution to this? We have two entries we just did that we want to edit and they are also saying Episode does not Exist. No apostrophe in the title though. |
I did end up fixing our first occurrence of this though it has happened again to another episode. I can't remember the exact fix at the moment as it was about a week ago but I believe what I did was rename the episode xml files with nano through ssh to get the link to actually correspond to the filename; After that we were able to have the link navigate to the episode details for editing. When I get some time to go fix that other episode I'll try and document the fix here. |
I'm going to bring over the renaming that I did for the live items (in my work branch for that) to episodes, but existing episodes on sites will still need to be fixed up manually. Please make sure that for any episode media file x.ext there's x.xml and that the only characters in the filenames are alphanumeric characters, the dash character, and the underscore character. |
Further on my previous comment, PG looks for the episode metadata by replacing the extension of the episode media file with ".xml" so if that file doesn't exist or is differently-cased then the admin page will think the episode doesn't exist. |
Fix up makeEpisodeFilename() and makeUniqueFilename() so that characters outside the alphanumeric range that aren't the period, dash, or underscore are replaced with an underscore. refs #691
You shouldn't change the |
Thanks for noting this, didn't realize So to manually fix these episodes, would all one need to do is change the |
I wish you hadn't deleted your comment because other than the part about changing the value of the guid tag, it was all correct. Fixing the filename is necessary, as is keeping the XML sidecar filename in sync, but the only thing that should ever be done to the value of the guid element in any of those sidecar files is fixing up any unescaped characters that could cause parsing issues for the XML. |
Thanks for you help, I did keep a copy of the prior comment just in case, prior comment with hopefully updated guid instructions (have only updated the instructions for dealing with guid): This is mainly a note for those looking to fix this issue where it has happened in older versions of Podcast Generator (instance where I fixed this is not the latest for sure) It looks like what breaks the episode and makes it "not exist" while still actually existing, at least in my case, is when a special character gets into the Linux file name for the episode. (See @coldacid comment above, mentions all characters should be alphanumeric characters, the dash character, and the underscore character); When running "ls" in the /PodcastGenerator/media directory it may also put apostrophes around broken episode file names while your other episodes have not apostrophes around the episode title names. Update to below (credit to @coldacid comment below): And you must also edit the Removing all ampersands / special characters from file names and making the episodes |
System Information
Podcast Generator Version: 3.2.7
Webserver: nginx/1.20.1 on Ubuntu Server 20.04 x64 Digital Ocean LEMP 1 Click Install
PHP Version: PHP 7.4.30
Podcast Generator Config
Expected behavior
"Episode does not exist" page is displayed when clicking on otherwise completely functional episode through /admin/episodes_list.php menu.
Actual behavior
Episode should behave as others when clicking on the title to open up the edit corresponding episodes_edit.php page. Some things of note: The single error episode in question functions normally through various apps and is able to be listened to. I can still edit the .xml file through command line using nano to make episode changes. When listing the /media directory with the "ls" command this episode happens to be the only surrounded in single quotes suggesting a space is present however I am able to edit the file with nano without quotes or spaces.
How to reproduce
Unknown at this time.
The text was updated successfully, but these errors were encountered: