Chris1320 / YTDLer

A youtube-dl wrapper.
0 stars 0 forks source link

Files not moved to downloaded folder when URL is a channel URL. #1

Open Chris1320 opened 3 years ago

Chris1320 commented 3 years ago

When ytdl.py downloads videos from a channel URL, youtube_dl downloads each videos from that channel. But YTDL recieves a different title:

\<channel name> - Videos

So after the download and post-processing of youtube_dl, YTDL checks for files in the temp folder by

# Line 808 on v0.2.6

# Value of  `url_info['id']` is the channel ID, not the video ID, so no files will match.

for f in os.listdir(self.temp_dl_path):
    if f"- {url_info['id']}" in f:
        matched_files.append(f)