ZeroQI / Absolute-Series-Scanner

Seasons, absolute mode, Subfolders...
1.01k stars 155 forks source link

Reverse YouTube Numbering? #193

Closed semicolonsnet closed 6 years ago

semicolonsnet commented 6 years ago

I'm working with a YT channel that has a lot of videos (https://www.youtube.com/channel/UCsQBsZJltmLzlsJNG7HevBg). I'm using the channel ID in the series folder name to designate them. However, episodes are numbered with the newest video first. I'd like an option to reverse that and number them starting with the oldest video.

ZeroQI commented 6 years ago

Do you use my scanner? Could you attach the agent logs?

Doesn't youtube2 mode manages that albeit with one season per year or is it also reversed?

semicolonsnet commented 6 years ago

I am using ASS, with the YouTube agent prioritized. Attached are logs with verbose on and the series identifier renamed as youtube2 as you suggested. The same issue appears - episodes from the series' beginning are numbered 870+ when I'd like episodes numbered from oldest to most recent.

Plex Media Server Logs_2018-11-04_08-45-18.zip

Thanks for your help on this!

ZeroQI commented 6 years ago

The logs were missing YouTube agent logs... scanner line 777-779

    if id.startswith('UC') or id.startswith('HC'):
      files_per_date = sorted(os.listdir(os.path.join(root, path)), key=getmtime, reverse=True)
      Log.info('files_per_date: {}'.format(files_per_date))

The main point of the scanner is not to renumber all episodes each time there is a release so reverse was wrong. i have amended that, so please try the latest version, and report

The folder will probably be cached by Pex so either add an episode or remove, re-scan, add back if it doesn't detect changes.

semicolonsnet commented 6 years ago

New version resolves the issue - closing the thread. Thanks!