theychx / totalsize

Script that uses yt-dlp to calculate total size of all videos in a playlist (also works with single videos).
MIT License
70 stars 15 forks source link

Unable to extract uploader id #38

Open RCcola1987 opened 1 year ago

RCcola1987 commented 1 year ago

As of about 2 weeks ago totalsize cannot get the uploaderID for any channel.

example url https://www.youtube.com/@tfbtv/videos

Using Totalsize version 7.1 yt-dlp version's yt-dlp version 2023.01.06 yt-dlp version stable@2023.03.04 [392389b7d] (linux_exe)

system info

        .-/+oossssoo+/-.                
    `:+ssssssssssssssssss+:`           -------------------- 
  -+ssssssssssssssssssyyssss+-         OS: Ubuntu 22.04.2 LTS x86_64 
.ossssssssssssssssssdMMMNysssso.       Host: KVM/QEMU (Standard PC (i440FX + PIIX, 1996) pc-i440fx-7.1) 

/ssssssssssshdmmNNmmyNMMMMhssssss/ Kernel: 5.15.0-58-generic +ssssssssshmydMMMMMMMNddddyssssssss+ Uptime: 41 days, 22 hours, 2 mins /sssssssshNMMMyhhyyyyhmNMMMNhssssssss/ Packages: 1302 (dpkg), 4 (snap) .ssssssssdMMMNhsssssssssshNMMMdssssssss. Shell: bash 5.1.16 +sssshhhyNMMNyssssssssssssyNMMMysssssss+ Resolution: 1280x800 ossyNMMMNyMMhsssssssssssssshmmmhssssssso Terminal: /dev/pts/0 ossyNMMMNyMMhsssssssssssssshmmmhssssssso CPU: Common KVM (2) @ 3.919GHz +sssshhhyNMMNyssssssssssssyNMMMysssssss+ GPU: 00:02.0 Red Hat, Inc. Virtio GPU .ssssssssdMMMNhsssssssssshNMMMdssssssss. Memory: 590MiB / 3923MiB /sssssssshNMMMyhhyyyyhdNMMMNhssssssss/ +sssssssssdmydMMMMMMMMddddyssssssss+
/ssssssssssshdmNNNNmyNMMMMhssssss/
.ossssssssssssssssssdMMMNysssso. -+sssssssssssssssssyyyssss+- :+ssssssssssssssssss+: .-/+oossssoo+/-.

theychx commented 1 year ago

Can't reproduce with the yt channel you supplied. There was a uploader id related issue that was fixed in yt-dlp 2023.02.17, so make sure you are using the latest version (your spec mentions 2 different versions)

RCcola1987 commented 1 year ago

Their are 2 different versions since Ive tried on 2 different systems, The main system has the newest version of yt-dlp. Is their any flags i can add to get you more info.

Available version: stable@2023.03.04, Current version: stable@2023.03.04 Current Build Hash: 7494af600c4389d19961b44e406472bba7c54c28dc1f62bb72bdde7181708a9a yt-dlp is up to date (stable@2023.03.04)

error

totalsize https://www.youtube.com/@tfbtv/videos ERROR: [youtube] I4dOsVvIWwM: Unable to extract uploader id; please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U

RCcola1987 commented 1 year ago

I found a fix but I don't know what caused the original problem.

It appears to be an issue with they way pip installs its own version of yt-dlp. To fix this I had to use pip to uninstall both yt-dlp and totalsize. Then install yt-dlp by downloading the bin from yt-dlp's GitHub and then installing totalsize with pip. Issue resolved.

Maybe pip is doing something weird?

tyl0413 commented 11 months ago

I solved this issue by reinstalling the pip version of yt-dlp.