Page 1 of 1

[SOLVED] Tartube / Yt-dlp not working

PostPosted: Jul 4th, '24, 20:33
by romal333
Good afternoon. Six months ago, Tartube was installed from the repository, with yt-dlp. Everything worked great, but about 2 weeks ago a problem arose. Shown using an example of downloading in Classic Mode. In other modes, the problem is the same in the end. Updating yt-dlp didn't help. Yt-dlp took from here https://github.com/yt-dlp/yt-dlp/releases.
If you use yt-dlp separately from the command line, it works.

Tartube. Example. Output.
Spoiler:
/**********/yt-dlp_linux --newline -i --hls-prefer-native --write-description --write-info-json --write-annotations --cookies /mnt/hd6/tartube-data/cookies.txt --write-thumbnail --output /********/%(title)s.%(ext)s --ffmpeg-location /usr/bin/ffmpeg https://www.youtube.com/watch?v=d33x1HyJZ10
[youtube] Extracting URL: https://www.youtube.com/watch?v=d33x1HyJZ10
[youtube] d33x1HyJZ10: Downloading webpage
[youtube] d33x1HyJZ10: Downloading ios player API JSON
[youtube] d33x1HyJZ10: Downloading m3u8 information
[info] d33x1HyJZ10: Downloading 1 format(s): 247+251
[info] Writing video description to: /*******/Smoke On The Water; drum cover by Sina.description
[info] Downloading video thumbnail 41 ...
[info] Writing video thumbnail 41 to: /*******/Smoke On The Water; drum cover by Sina.webp
[info] Writing video metadata as JSON to: /********l/Smoke On The Water; drum cover by Sina.info.json
WARNING: There are no annotations to write.
ERROR: unable to download video data: HTTP Error 403: Forbidden


Command line. Example. Output.
Spoiler:
/************/yt-dlp_linux https://www.youtube.com/watch?v=d33x1HyJZ10
[youtube] Extracting URL: https://www.youtube.com/watch?v=d33x1HyJZ10
[youtube] d33x1HyJZ10: Downloading webpage
[youtube] d33x1HyJZ10: Downloading ios player API JSON
[youtube] d33x1HyJZ10: Downloading m3u8 information
[info] d33x1HyJZ10: Downloading 1 format(s): 247+251
[download] Destination: Smoke On The Water; drum cover by Sina [d33x1HyJZ10].f247.webm
[download] 100% of 32.64MiB in 00:00:18 at 1.79MiB/s
[download] Destination: Smoke On The Water; drum cover by Sina [d33x1HyJZ10].f251.webm
[download] 100% of 5.11MiB in 00:00:03 at 1.68MiB/s
[Merger] Merging formats into "Smoke On The Water; drum cover by Sina [d33x1HyJZ10].webm"
Deleting original file Smoke On The Water; drum cover by Sina [d33x1HyJZ10].f247.webm (pass -k to keep)
Deleting original file Smoke On The Water; drum cover by Sina [d33x1HyJZ10].f251.webm (pass -k to keep)

Re: Tartube / Yt-dlp not working

PostPosted: Jul 5th, '24, 00:25
by morgano
This is not my cup of tea.
But I know we also have packaged clipgrab - does that work as an alternative?
https://clipgrab.org/

Re: Tartube / Yt-dlp not working

PostPosted: Jul 6th, '24, 00:57
by romal333
Yes, clipgrab works, thanks. But why clipgrab and yt-dlp separately from the command line, works, but Tartube - does not, for the same source? I will continue to search for a solution.

Re: Tartube / Yt-dlp not working

PostPosted: Jul 6th, '24, 13:46
by sturmvogel
The problem is that the external download of yt-dlp from within tartube is disabled. Don't use external versions of yt-dlp!

Solution: Install yt-dlp from MCC and tartube will pick up this version. After that everything works. Make sure that tartube uses the correct default path /usr/bin/yt-dlp

https://bugs.mageia.org/show_bug.cgi?id=33372

Re: Tartube / Yt-dlp not working

PostPosted: Jul 6th, '24, 14:41
by romal333
sturmvogel wrote:The problem is that the external download of yt-dlp from within tartube is disabled. Don't use external versions of yt-dlp!

Solution: Install yt-dlp from MCC and tartube will pick up this version. After that everything works. Make sure that tartube uses the correct default path /usr/bin/yt-dlp

https://bugs.mageia.org/show_bug.cgi?id=33372


Thanks, but I have the same result
Spoiler:
/usr/bin/yt-dlp --newline -i --hls-prefer-native --write-description --write-info-json --write-annotations --cookies /mnt/hd6/tartube-data/cookies.txt --write-thumbnail --output /home/romal/%(title)s.%(ext)s --ffmpeg-location /usr/bin/ffmpeg https://www.youtube.com/watch?v=d33x1HyJZ10
[youtube] Extracting URL: https://www.youtube.com/watch?v=d33x1HyJZ10
[youtube] d33x1HyJZ10: Downloading webpage
[youtube] d33x1HyJZ10: Downloading ios player API JSON
[youtube] d33x1HyJZ10: Downloading android player API JSON
[youtube] d33x1HyJZ10: Downloading m3u8 information
[info] d33x1HyJZ10: Downloading 1 format(s): 247+251
[info] Writing video description to: /home/romal/Smoke On The Water; drum cover by Sina.description
[info] Downloading video thumbnail 41 ...
[info] Writing video thumbnail 41 to: /home/romal/Smoke On The Water; drum cover by Sina.webp
[info] Writing video metadata as JSON to: /home/romal/Smoke On The Water; drum cover by Sina.info.json
WARNING: There are no annotations to write.
ERROR: unable to download video data: HTTP Error 403: Forbidden


And yt-dlp from MCC - works great from command line
Spoiler:
[............... ~]$ yt-dlp https://www.youtube.com/watch?v=d33x1HyJZ10
[youtube] Extracting URL: https://www.youtube.com/watch?v=d33x1HyJZ10
[youtube] d33x1HyJZ10: Downloading webpage
[youtube] d33x1HyJZ10: Downloading ios player API JSON
[youtube] d33x1HyJZ10: Downloading android player API JSON
[youtube] d33x1HyJZ10: Downloading m3u8 information
[info] d33x1HyJZ10: Downloading 1 format(s): 247+251
[download] Destination: Smoke On The Water; drum cover by Sina [d33x1HyJZ10].f247.webm
[download] 100% of 32.64MiB in 00:00:18 at 1.79MiB/s
[download] Destination: Smoke On The Water; drum cover by Sina [d33x1HyJZ10].f251.webm
[download] 100% of 5.11MiB in 00:00:02 at 1.75MiB/s
[Merger] Merging formats into "Smoke On The Water; drum cover by Sina [d33x1HyJZ10].webm"
Deleting original file Smoke On The Water; drum cover by Sina [d33x1HyJZ10].f251.webm (pass -k to keep)
Deleting original file Smoke On The Water; drum cover by Sina [d33x1HyJZ10].f247.webm (pass -k to keep)

Re: Tartube / Yt-dlp not working

PostPosted: Jul 6th, '24, 15:07
by sturmvogel
You need to clean up your system. Remove all traces (including settings and caches) from your external yt-dlp. Also remove the tartube settings and caches. Works flawlessly here.

From tartube (after installing yt-dlp with MCC):
Code: Select all
/usr/bin/yt-dlp --newline -i --hls-prefer-native --write-description --write-info-json --write-annotations --cookies /home/test/tartube-data/cookies.txt --write-thumbnail --output /home/test/tartube-data/Unsorted Videos/%(title)s.%(ext)s https://www.youtube.com/watch?v=d33x1HyJZ10
[youtube] Extracting URL: https://www.youtube.com/watch?v=d33x1HyJZ10
[youtube] d33x1HyJZ10: Downloading webpage
[youtube] d33x1HyJZ10: Downloading ios player API JSON
[youtube] d33x1HyJZ10: Downloading android player API JSON
[youtube] d33x1HyJZ10: Downloading m3u8 information
[info] d33x1HyJZ10: Downloading 1 format(s): 247+251
[info] Writing video description to: /home/test/tartube-data/Unsorted Videos/Smoke On The Water; drum cover by Sina.description
[info] Downloading video thumbnail 41 ...
[info] Writing video thumbnail 41 to: /home/test/tartube-data/Unsorted Videos/Smoke On The Water; drum cover by Sina.webp
[info] Writing video metadata as JSON to: /home/test/tartube-data/Unsorted Videos/Smoke On The Water; drum cover by Sina.info.json
[download] Destination: /home/test/tartube-data/Unsorted Videos/Smoke On The Water; drum cover by Sina.f247.webm
[download] 100% of   32.64MiB in 00:00:05 at 5.88MiB/s
[download] Destination: /home/test/tartube-data/Unsorted Videos/Smoke On The Water; drum cover by Sina.f251.webm
[download] 100% of    5.11MiB in 00:00:00 at 5.53MiB/s
[Merger] Merging formats into "/home/test/tartube-data/Unsorted Videos/Smoke On The Water; drum cover by Sina.webm"
Deleting original file /home/test/tartube-data/Unsorted Videos/Smoke On The Water; drum cover by Sina.f247.webm (pass -k to keep)
Deleting original file /home/test/tartube-data/Unsorted Videos/Smoke On The Water; drum cover by Sina.f251.webm (pass -k to keep)
WARNING: There are no annotations to write.

Re: Tartube / Yt-dlp not working

PostPosted: Jul 6th, '24, 15:18
by romal333
You need to clean up your system. Remove all traces (including settings and caches) from your external yt-dlp. Also remove the tartube settings and caches. Works flawlessly here.

I'll try, thank you.

Re: Tartube / Yt-dlp not working

PostPosted: Jul 6th, '24, 17:32
by romal333
sturmvogel wrote:You need to clean up your system. Remove all traces (including settings and caches) from your external yt-dlp. Also remove the tartube settings and caches. Works flawlessly here.


Thank you very match. You were right, everything works now. Just in case, I completely uninstalled the program and components, deleted the settings files, and deleted the cookies.txt file from the tartube-data directory. I rebooted so that there was no doubt left. I installed everything again, the program picked up the settings from the database, and now everything works correctly.

Re: Tartube / Yt-dlp not working

PostPosted: Jul 6th, '24, 19:31
by isadora
Provided with the correct information, would you be so kind, to mark the topic solved.
You can do so, by writing [SOLVED] leftwards of the topic-title in your first message.
Thanks ahead. ;)

Re: Tartube / Yt-dlp not working

PostPosted: Jul 6th, '24, 21:48
by romal333
I'm sorry, :) I thought only a moderator after checking can do this

Re: [SOLVED] Tartube / Yt-dlp not working

PostPosted: Jul 7th, '24, 07:46
by isadora
No worries, thank you. :D