#1
|
|||
|
|||
Creating Channel folder for youtube archiving (Packagizer rule)
I'm looking for jd to create a folder of the youtube channels name then it saves the package folder of the video to that location.
channel1---Pakagename----files channel2---Pakagename----files channel3---Pakagename----files The closet I can get to this is to create a packagizer rule to grab the name of the channel from the packagename and make it save it to that location. The problem is I have to create a packagizer rule for every channel I add. |
#2
|
|||
|
|||
I might be able to find another way to orgize it if I can use the filename rules from the youtube plugin in the packagizer but I assume this is not possible.
|
#3
|
|||
|
|||
I guess one more question. Is it possible to have jd make the thumbnail image of a youtube video the thumbnail image of the video file?
|
#4
|
||||
|
||||
Hi,
through dynamic rules, you can of course make one rule to grab any channel name you want and use that as packagename. Because I cannot know your youtube filename settings, I'am unable to help you without knowing these. If you use the default YT filename settings, I can help you to create such a rule. -psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#5
|
|||
|
|||
Quote:
|
#6
|
||||
|
||||
this is how i used todo it with some regex in package customiser, and youtube plugin settings
so plugin settings for youtube, set packagename to just channel name, filename as you wish in the package customiser, set filename (equals) (.+)\.[a-z0-9]{3,4} and check the regex checkbox packagename (equals) * downloadurl (contains) youtube.com/ and then download path; <jd:orgpackagename:1>/<jd:orgfilename:1> and packagename you can set back to filename packagename <jd:orgfilename:1> gave it a quick test and works. not sure about using plugin properties for this host due to the way data is kept/used (though it might be possible). I never really looked into it because this rule above worked years prior to them been available .
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] Last edited by raztoki; 19.03.2020 at 03:22. |
#7
|
|||
|
|||
Quote:
Last edited by AlphaSlayer; 19.03.2020 at 06:56. |
#8
|
|||
|
|||
Quote:
Customized Packagename pattern in plugin settings: Code:
channelname=*CHANNELNAME*packagename=*VIDEO_NAME* Packagizer rule: Code:
if : package name : contains : channelname=*packagename=* set : download directory : <jd:orgpackagename:1>/<jd:orgpackagename:2> set : package name : <jd:orgpackagename:2> |
#9
|
|||
|
|||
Quote:
|
#10
|
|||
|
|||
Quote:
|
#11
|
|||
|
|||
Quote:
Wait for developers feedback. |
#12
|
||||
|
||||
Quote:
-psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#13
|
|||
|
|||
Ok well I'll just download the thumbnails now and look for a tool in the future. Thanks again for the help
|
#14
|
|||
|
|||
Quote:
Quote:
Code:
/* Add coverr to YT videos Trigger required: Package Finished External program used: mkvtoolnix */ var mkvpropedit = "d:/apps/mkvtoolnix/mkvpropedit"; // <- set path to mkvpropedit package.getDownloadLinks().forEach(function(link) { if (link.isFinished() && link.getHost() == "youtube.com") { var path = getPath(link.getDownloadPath()); var ext = path.getExtension(); var video = ["mkv", "webm"]; if (video.indexOf(ext) > -1 && path.exists()) { var id = link.getProperty("YT_ID"); link.getPackage().getDownloadLinks().some(function(link2) { var id2 = link2.getProperty("YT_ID"); if (id == id2) { var path2 = getPath(link2.getDownloadPath()); var ext2 = getPath(path2).getExtension(); if (ext2 == "jpg" && path2.exists()) { var result = callSync(mkvpropedit, path, "--attachment-name", "\"cover\"", "--attachment-mime-type", "\"image/jpeg\"", "--add-attachment", path2); return true; } } }) } } }) This script uses 'mkvpropedit' to add cover art to YT videos. YT MP4 vidoes are not in matroska container format, so, to add cover art those videos, you will need to convert them to matroska container format first (can use mkvmerge in same script), or use some other external program (in the script, instead of mkvpropedit) which supports all container formats . |
#15
|
|||
|
|||
Quote:
|
Thread Tools | |
Display Modes | |
|
|