JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #4561  
Old 26.09.2021, 10:28
kimkayoung kimkayoung is offline
Ultra Loader
 
Join Date: Jul 2009
Posts: 49
Default

Hello. I have tried to figure this out while searching for the relevant info, but somehow I can't get my JD to download only audiofiles on Youtube in mp3. I tried Event Scripter, using MGPai's script (https://board.jdownloader.org/showpo...61&postcount=1) but nothing has happened. I'm probably doing something wrong. Can someone help me in this regard?

Also, I thought it would be great if JD had a quick menu to turn this feature on.

Thank you very much for your help in advance.

kimkayoung
Reply With Quote
  #4562  
Old 26.09.2021, 11:18
xpssrg xpssrg is offline
Modem User
 
Join Date: Mar 2018
Posts: 4
Default

Preferred codec?

Hello. AV1 is provided for the video, but H.264 is detected first. If I disable all codecs except AV1 in YT plugin, I can download AV1 right now.

I don't want to disable the all codecs because this way I won't be able to download videos that don't have AV1.

Thanks for the advice!
Reply With Quote
  #4563  
Old 26.09.2021, 11:34
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,484
Default

Quote:
Originally Posted by xpssrg View Post
Preferred codec?
Code:
Settings > Advanced Settings > Youtube.qualitysortidentifierordervideocodec
Reply With Quote
  #4564  
Old 26.09.2021, 11:39
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,484
Default

Quote:
Originally Posted by kimkayoung View Post
... I can't get my JD to download only audiofiles on Youtube in mp3. I tried Event Scripter ... but nothing has happened.
Make sure you are using "A download stopped" trigger. Also note, by default, it only converts aac/mp4/ogg files to mp3.

Contact me in JD Chat if it still doesn't work:
Code:
kiwiirc.com/nextclient/irc.libera.chat/#jdownloader
Reply With Quote
  #4565  
Old 27.09.2021, 15:11
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 76,456
Default

@mgpai: thanks again for your time to help
__________________
JD-Dev & Server-Admin
Reply With Quote
  #4566  
Old 27.09.2021, 15:31
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,484
Default

Workaround using eventscripter, to get 100+ items from playlist.

Script:
Code:
/*
    Get all YT playlist items (Requires youtube-dl)
    Trigger: Linkgrabber contextmenu button pressed
    Customize linkgrabber context menu > Add a new "Eventscripter Trigger" button > Rename it to "Get all playlist items"
*/

var youtube_dl = "d:/apps/youtube-dl/youtube-dl.exe"; // <- set path to yotuube-dl

if (name == "Get all playlist items") {
    var link, playlistId, playlist, title, url, urls = [];

    try {
        link = lgSelection.contextLink;
        playlistId = link.getProperty("YT_PLAYLIST_ID");

        if (!getProperty(playlistId, false)) {
            try {
                setProperty(playlistId, true, false);
                playlist = callSync(youtube_dl, "-J", "--flat-playlist", playlistId);
                playlist = JSON.parse(playlist);
                len = playlist.entries.length;
                title = playlist.title;

                playlist.entries.forEach(function(entry, index) {
                    url = "https" + "://www.youtube.com/watch?v=";
                    url += entry.id;
                    url += "&playlistTitle=" + title;
                    url += "&playlistPosition=" + getIndex(index, len);

                    urls.push(url);
                })

                callAPI("linkgrabberv2", "addLinks", {
                    links: urls.join("<br>")
                })
            } finally {
                setProperty(playlistId, null, false);
            };
        }
    } catch (e) {};
}

function getIndex(index, len) {
    var len = "" + len;
    var index = "" + (index + 1);

    while (index.length < len.length) {
        index = "0" + index;
    }

    return index;
}

Packagizer rule to set playlist title as packagename and append playlist position to filename (Optional):
Code:
If > sourceurls(s) > contains : &playlistTitle=*&playlistPosition=*

then set > Package Name: <jd:source:1>
then set > Filename: <jd:source:2> <jd:orgfilename>

To get all remaining links of a playlist, in the linkgrabber, select existing link belonging to that playlist and run the scirpt by clicking "Get all playlist items" in the context menu.
Reply With Quote
  #4567  
Old 27.09.2021, 17:40
Davidbee Davidbee is offline
Baby Loader
 
Join Date: Jul 2017
Posts: 8
Default Youtube Playlist 100 Video Limit

Hey Leute

Ja ja, ich weiß. Dieses Thema kam hier schon sehr oft auf und ich hab die Beiträge und deren Beantwortungen auch alle gelesen. Diese lautete dann zumeißt:

"Das Crawlen von ü100 Vids funktioniert momentan nicht. Füge die Videos einzeln hinzu oder erstelle selber Playlisten mit je unter 100 Videos"

Niemand spricht darüber, WARUM das überhaupt so ist und warum das gefühlt über Jahre nicht behoben werden konnte. Andere Nutzer in diesem Forum haben es scheinbar irgendwann aufgegeben, das Thema überhaupt noch mal anzusprechen

Jedoch ist die Funktion für mich wirklich wichtig und es gibt auch nicht wirklich viele Alternativen bis auf den "4K Video Downloader". Den würd ich sogar bezahlen. Jedoch haben die nen Lizenzmodell welches mich extrem stören würde. Wenn ich mich da richtig erinnere arbeitet diese Software mit Hardwarebindung per Aktivierung. Und bei solchen Methoden krieg ich immer Pilz ;-)

Also...... Weiß hier jemand mal irgendetwas konkretes zu dem Thema? Ich kann mir nicht vorstellen, daß die besten Opensource Entwickler, die alle an dem Projekt arbeiten über derart lange Zeit so einen Bug nicht beheben können. Oder gibt es da vielleicht sogar irgendeinen Deal mit Youtube das Limit wurde vielleicht sogar absichtlich gesetzt?

Ich würde das nach dieser langen Zeit solangsam wirklich gerne wissen.
Reply With Quote
  #4568  
Old 27.09.2021, 17:46
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 76,456
Default

@Davidbee
Quote:
Originally Posted by Davidbee View Post
Niemand spricht darüber, WARUM das überhaupt so ist und warum das gefühlt über Jahre nicht behoben werden konnte. Andere Nutzer in diesem Forum haben es scheinbar irgendwann aufgegeben, das Thema überhaupt noch mal anzusprechen
Kurz: Mir fehlt die Zeit gebündelt/konzentriert an dem Parser zu arbeiten,da ich neben Support/Wartung/Mails/Tickets/Bugfixes/Änderungen auch noch andere Arbeiten zu erledigen habe. Auch wird das Thema immer wieder erwähnt. Ändert halt nur nichts an der fehlenden Zeit.

Quote:
Originally Posted by Davidbee View Post
Ich kann mir nicht vorstellen, daß die besten Opensource Entwickler, die alle an dem Projekt arbeiten über derart lange Zeit so einen Bug nicht beheben können.
Bisher hat sich kein Entwickler aus der Community gefunden seine Zeit für dieses Thema zu *opfern*. Das hat nichts mit *guter/schlechter* Entwickler zu tun, sondern einfach fehlende Zeit. YT ist eines von tausenden Plugins.

Quote:
Originally Posted by Davidbee View Post
Oder gibt es da vielleicht sogar irgendeinen Deal mit Youtube das Limit wurde vielleicht sogar absichtlich gesetzt?
Auf Ideen kommen die Leute....
__________________
JD-Dev & Server-Admin

Last edited by Jiaz; 27.09.2021 at 17:48.
Reply With Quote
  #4569  
Old 27.09.2021, 17:56
Davidbee Davidbee is offline
Baby Loader
 
Join Date: Jul 2017
Posts: 8
Default Youtube 100 Video Limit

Okay, dann muss ich mich wohl entschuldigen. Ich wusste über die internen Strukturen nicht bescheid und daß scheinbar nur ein einziger entwickler daran Arbeitet. Und wenn dieser dann gleichzeitig auch noch 1000 andere Sachen managen muss, ist natürlich klar, wo die Ursache liegt. Aber dann weiß ich jetzt wenigstens bescheid. Danke für die Antwort!

LG
Dave
Reply With Quote
  #4570  
Old 27.09.2021, 18:01
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 76,456
Default

@Davidbee: Kein Grund für Entschuldigung. Du hattest Fragen und ich hab versucht zu antworten, evtl war eher ich zu *harsch* im Ton, sorry dafür. Ich hab das Thema auf meiner Liste und bastel hier und da dran, aber ich kann noch nicht abschätzen wann es fertig wird
__________________
JD-Dev & Server-Admin
Reply With Quote
  #4571  
Old 28.09.2021, 01:07
xpssrg xpssrg is offline
Modem User
 
Join Date: Mar 2018
Posts: 4
Default

Quote:
Originally Posted by mgpai View Post
Code:
Settings > Advanced Settings > Youtube.qualitysortidentifierordervideocodec
I got it! Thank you
Reply With Quote
  #4572  
Old 29.09.2021, 03:23
rezad rezad is offline
Linkgrabbing Monster
 
Join Date: Jan 2014
Posts: 86
Default

I have added this to jdownloader **External links are only visible to Support Staff****External links are only visible to Support Staff**
I see two issues with this.
first there are two av1 (in each resolution group) with no difference that appear in jdownloader and when I download them they only differ in bitrate and one is almost twice the size of other.
it seems to be a youtube issue too because it just give two videos that have no difference except bitrate.

but the more important issue is that those two av1 downloaded file variant (in each resolution group) are both hdr but jdownloader doesn't indicate that.

youtube-dl command shows the correct info for them

397 mp4 854x450 480p HDR 397k , mp4_dash container, av01.0.04M.10.0.110.09.16.09.0@ 397k, 24fps, video only, 8.35MiB
697 mp4 854x450 480p HDR 736k , mp4_dash container, av01.0.04M.10.0.110.09.16.09.0@ 736k, 24fps, video only, 15.46MiB

Last edited by rezad; 29.09.2021 at 03:28.
Reply With Quote
  #4573  
Old 29.09.2021, 09:22
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 76,456
Default

@rezad: different itag = different/higher bitrate. and JDownloader doesn't highlight/indicate HDR at all
I will check if I can optimize the bitrate stuff and maybe add HDR tag as well
__________________
JD-Dev & Server-Admin
Reply With Quote
  #4574  
Old 30.09.2021, 20:04
Stargate38 Stargate38 is offline
DSL Light User
 
Join Date: Apr 2012
Location: United States, Earth, Milky Way, Local Galaxy Supercluster
Posts: 31
Default

I can't seem to download audio/video from Youtube. It just gets stuck at "Starting...". The text description downloads just fine:

30.09.21 13.59.00 <--> 30.09.21 13.59.00 jdlog://6658825302851/
**External links are only visible to Support Staff****External links are only visible to Support Staff**
Reply With Quote
  #4575  
Old 01.10.2021, 14:48
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 76,456
Default

@Stargate38: still encounter the issue?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #4576  
Old 01.10.2021, 16:58
Stargate38 Stargate38 is offline
DSL Light User
 
Join Date: Apr 2012
Location: United States, Earth, Milky Way, Local Galaxy Supercluster
Posts: 31
Default

I found out that it's a problem with my modem. Once I get that fixed, then I'll test it out again.
Reply With Quote
  #4577  
Old 01.10.2021, 17:15
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 76,456
Default

@Stargate38: Thanks for the followup! Good luck!
__________________
JD-Dev & Server-Admin
Reply With Quote
  #4578  
Old 01.10.2021, 23:13
Stargate38 Stargate38 is offline
DSL Light User
 
Join Date: Apr 2012
Location: United States, Earth, Milky Way, Local Galaxy Supercluster
Posts: 31
Default

I just found out that the modem is fine. Whatever is causing it must be associated with the ISP I'm using (Armstrong). If anyone else is using that ISP, please check if you can download YT videos with it or not.
Reply With Quote
  #4579  
Old 04.10.2021, 12:15
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 76,456
Default

@Stargate38: please also check firewall/av
Quote:
3:r3---sn-5ghnugvob-2pus.googlevideo.com/24.154.57.174:443|java.net.ConnectException(Connection timed out: connect)|retrySSL:null
__________________
JD-Dev & Server-Admin
Reply With Quote
  #4580  
Old 05.10.2021, 04:54
Snookie Snookie is offline
JD Fan
 
Join Date: Jun 2015
Posts: 75
Exclamation YouTube plugin problem

when i copy a YouTube channel link that has more then 5000 videos jd2 only captures 100 videos out of 5000+
i really need to download all the videos this channel has :'( should i wait for a fix ?

Last edited by Snookie; 05.10.2021 at 04:57.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 13:19.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.