Sort videos by views-per-day + download the top ones#146
Sort videos by views-per-day + download the top ones#146deldesir wants to merge 2 commits intoiiab:masterfrom
Conversation
|
Test with a channel of 87 videos: https://www.youtube.com/@SpeechBlubs Bookshelf is named after the channel |
|
I will number them correctly for better communication |
|
Test scenario 6: Valid Download with Progress Observation (Playlist) 100 top videos downloaded: Shelf named after the playlist title: |
|
IIAB-DIAGNOSTICS - http://sprunge.us/oECy1e?en Subsequent download attempts for these below have all failed in tasks but an empty bookshelf name is created. |
|
UPDATE A new VM was created .The first playlist downloaded OK with ranking showing well.It was observed that only the first playlist downloadS ok and populates videos in the shelf.All further downloads thereafter have been failing together with the previously successful playlist https://www.youtube.com/playlist?list=PLGjplNEQ1it_oTvuLRNqXfz_v_0pq6unW. |














🚀 Pull Request Overview:
This PR adds views-per-day to the metadata so videos can be sorted automatically based on the playlist. If the playlist contains more than 100, a bookshelf with the top 100 videos (based on their views per day) is created. For playlists with less than 100 videos, the sorting still happens automatically.
Videos are sorted by views-per-day and limited by MAX_VIDEOS_PER_DOWNLOAD
📌 Testing scenarios:
See Issue #97
cc @EMG70