Open scs3jb opened 7 years ago
Thanks for the report. I think 117 is the first video test and then they don't kick off the official video stream until ep. 126, so I suspect the missing episodes are right at the beginning. The script has probably named ep. 126 as 118 and just continued from there.
The script works by scanning for the latest file in the download destination directory by looking at the episode numbers then taking the date of the episode in the filename and then using that to scan the video site for episodes day-by-day. You can fool this script into skipping episodes by just creating an empty file with a filename matching the episode and date of an episode before where you want to start downloading and the script will just carry on from there.
I might adjust the script so that it starts at episode 126 (there's two variables, highest_episode and highest_date which start at 116 and 2014-09-01, the episode before 117 so that it finds it, so they would be set to 125 and 2014-11-03 in order to pick up episode 126). Then I think I'll leave episode 117 as a downloading exercise for the reader.
The trick to this is that there is no real relation between dates, the wordpress site, the file name and the episode number. Like the video name is the recording date, but the Wordpress post dates are usually a day or so after and they contain the episode number. There is a folder in the repo with some older scripts which attempted to match episode numbers with dates using thetvdb.com metadata, but it was a bit hit-and-miss. Even though I'm updating thetvdb.com on a regular basis for the show. :)
I noticed the Wikipedia has runtime on its list: https://en.m.wikipedia.org/wiki/List_of_Harmontown_podcast_episodes
Assuming the videos match, I wonder if the length can be read to get a correct match?
EDIT: The times don't match :( I fixed the episodes as follows:
for i in ``ls -at``; do TEMP=(${i//./ }); TEMPB=(${TEMP[1]//E/ }); EPISODE=$(expr ${TEMPB[1]} + 8); mv $i ${TEMP[0]}.${TEMPB[0]}E${EPISODE}.WEB-DL.x264-HARMONiZE.mp4 ; done
Hi, I ran this application and unfortunately at some point it seems to drift by 8 episodes, and the show date is off: Harmontown - S01E255 - 2017-10-22.mp4 is actually S01E263.
The first episode downloaded is correct, at S01E117, so the drift happens somewhere in the middle where i presume some episodes are missing?
Is there any fix for this? I'd hate to have to download and name these manually every week.