[SOLVED] Tartube / Yt-dlp not working

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] Tartube / Yt-dlp not working

Postby romal333 » Jul 4th, '24, 20:33

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)
Last edited by romal333 on Jul 6th, '24, 21:50, edited 2 times in total.
romal333
 
Posts: 8
Joined: Jun 13th, '20, 13:33

Re: Tartube / Yt-dlp not working

Postby morgano » Jul 5th, '24, 00:25

This is not my cup of tea.
But I know we also have packaged clipgrab - does that work as an alternative?
https://clipgrab.org/
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T40, T43, T60, T400, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 1489
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: Tartube / Yt-dlp not working

Postby romal333 » Jul 6th, '24, 00:57

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.
Last edited by isadora on Jul 6th, '24, 08:08, edited 1 time in total.
Reason: Removed quote; not appropraite right after quoted message.
romal333
 
Posts: 8
Joined: Jun 13th, '20, 13:33

Re: Tartube / Yt-dlp not working

Postby sturmvogel » Jul 6th, '24, 13:46

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
sturmvogel
 
Posts: 739
Joined: Jul 30th, '12, 00:39

Re: Tartube / Yt-dlp not working

Postby romal333 » Jul 6th, '24, 14:41

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)
romal333
 
Posts: 8
Joined: Jun 13th, '20, 13:33

Re: Tartube / Yt-dlp not working

Postby sturmvogel » Jul 6th, '24, 15:07

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.
sturmvogel
 
Posts: 739
Joined: Jul 30th, '12, 00:39

Re: Tartube / Yt-dlp not working

Postby romal333 » Jul 6th, '24, 15:18

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.
romal333
 
Posts: 8
Joined: Jun 13th, '20, 13:33

Re: Tartube / Yt-dlp not working

Postby romal333 » Jul 6th, '24, 17:32

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.
romal333
 
Posts: 8
Joined: Jun 13th, '20, 13:33

Re: Tartube / Yt-dlp not working

Postby isadora » Jul 6th, '24, 19:31

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. ;)
..........bird from paradise..........

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
—Antoine de Saint-Exupéry
User avatar
isadora
 
Posts: 2765
Joined: Mar 25th, '11, 16:03
Location: Netherlands

Re: Tartube / Yt-dlp not working

Postby romal333 » Jul 6th, '24, 21:48

I'm sorry, :) I thought only a moderator after checking can do this
Last edited by isadora on Jul 7th, '24, 07:45, edited 1 time in total.
Reason: Removed quote; not appropraite right after quoted message.
romal333
 
Posts: 8
Joined: Jun 13th, '20, 13:33

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

Postby isadora » Jul 7th, '24, 07:46

No worries, thank you. :D
..........bird from paradise..........

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
—Antoine de Saint-Exupéry
User avatar
isadora
 
Posts: 2765
Joined: Mar 25th, '11, 16:03
Location: Netherlands


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron