#1
|
|||
|
|||
![]()
Hello, been looking for a way to use *title* of instagram story highlights packages into the filename. The separate highlights folder has the title of the individual story/highlight, but how do I put it into the filename as well? So that, when I move the highlights or story folders into the main profile folder, the filename should retain that it's a "story" file and also it which story or highlight it's from. Which would become a sort of organisation in one folder instead of having multiple folders.
Whenever I use any property like *title* or <jd:orgpackagename> ... nothing works in the filename. It always ends up with "#title#" (literally says "title") or "#jd:orgpackagename#" (literally says it). Is there a place I can see the available tags? That's one part of the problem so unsure whether I'm even trying the right things or not. Of course, I mean to apply this to all types of stories, not just highlights. And I suspect this would mean that the normal posts (non-stories or non-highlights) would have to ignore the *title* tag? |
#2
|
||||
|
||||
![]()
@serrato: Please see https://support.jdownloader.org/de/k...the-packagizer for all supported dynamic tags. You're looking for
Quote:
__________________
JD-Dev & Server-Admin |
#3
|
|||
|
|||
![]() Quote:
Anyway, in the instagram plugin, you have Code:
- Post crawler and its package name - Story crawler and its package name scheme - Story highlights crawler and its package name scheme .. - Custom filenames: Filename scheme (don't remember if this is default or I set it, but it is set to *date*_*uploader* - *main_content_id* *orderid*_of_*orderid_max* - *shortcode**ext*) The package for the normal files is the name of the account (uploader), that's fine. Stories have their own package and have a prefix so they appear as Code:
"story - uploader" Code:
"story highlights - uploader" So I thought I'd change the custom filename to have a prefix - if it's a story, there would be Code:
"story - " Code:
*date*_*uploader* - *main_content_id* *orderid*_of_*orderid_max* - *shortcode**ext* I tried to make it Code:
*date*_*uploader* - *title* - *main_content_id* *orderid*_of_*orderid_max* - *shortcode**ext* Code:
"story - *uploader*" "story highlights - *uploader* - *title*" But if I remove *title* from the row that says "Story Highlights crawler: Custom package name scheme for instagram.com/stories/highlights//", then it removes the title from the package name, so it clearly is working there, but it's not working in the global "Custom filenames: Filename scheme" that is a couple rows below it (and yeah I made sure to select "Custom" for "Filename type for all crawled media items"). Long story short, if the post crawled is a story, I want to add the title of that story to the post (just like its package has it) and same for story highlights. That way, if I merge all the posts into one package, the individual posts will still contain a label like "story" or "story highlight" and thus you don't need separate packages for stories or story highlights if one doesn't want many packages. Perhaps you can tell me which tags would work, or if I should make a packagizer rule for this? For these dynamic things I've always struggled so let me know how to go about it ![]() |
#4
|
||||
|
||||
![]()
Using the "title" in file names was not possible.
I've just added support via property "story_title" and tag "*title*". Wartest du auf einen angekündigten Bugfix oder ein neues Feature? Updates werden nicht immer sofort bereitgestellt! Bitte lies unser Update FAQ! | Please read our Update FAQ! --- Are you waiting for recently announced changes to get released? Updates to not necessarily get released immediately! Bitte lies unser Update FAQ! | Please read our Update FAQ! -psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download Last edited by pspzockerscene; 02.01.2025 at 14:06. |
#5
|
|||
|
|||
![]()
Thanks! I assume this will work for non-highlight story as well?
|
#6
|
||||
|
||||
![]()
No.
Correct me if I'm wrong but a "non-highlight-story" is just the current story of a user and that does not have a title?
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#7
|
|||
|
|||
![]()
Yes you're right, but when JD packages stories separately, it is able to do so with a "story" prefix (in the package title, I think it's just hard-coded in the story crawler but it's still added nonetheless), but the files at the moment just have regular filenames. I suppose I could manually add the prefix or through packagizer?
|
#8
|
||||
|
||||
![]()
You can change the names either via Packagizer or in the instagram.com plugin settings.
If you do not want that "story" prefix, change the setting "story crawler: package name[...]" to "custom" and then in the field below, enter you custom package name scheme. By default, the custom scheme does not include the string "story - " so changing it to custom may already be enough to make it work in the way you'd like to have it.
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#9
|
|||
|
|||
![]()
I mean to say, I do want the "story - " prefix, but I want it to be in the files as well, not just the package. Because once I combine all packages into one, the file names will retain the prefixes indicating if they are normal post (no prefixes), story- or storyhighlight -
![]() |
#10
|
||||
|
||||
![]()
That is not easily possible now.
Here are your options to make it work:
EventScripter forum thread: https://board.jdownloader.org/showthread.php?t=70525 EventScripter help article: https://support.jdownloader.org/know...event-scripter
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#11
|
|||
|
|||
![]()
Yup, #2 is exactly what I was thinking.
|
#12
|
||||
|
||||
![]()
Done.
Wartest du auf einen angekündigten Bugfix oder ein neues Feature? Updates werden nicht immer sofort bereitgestellt! Bitte lies unser Update FAQ! | Please read our Update FAQ! --- Are you waiting for recently announced changes to get released? Updates to not necessarily get released immediately! Bitte lies unser Update FAQ! | Please read our Update FAQ! -psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#13
|
|||
|
|||
![]()
Thanks again! And happy new year to all of you ~
|
#14
|
|||
|
|||
![]()
OK so for normal stories, it works perfectly, thanks!
For story highlights, it's halfway there. The *title* tag works to bring in the title in the custom filenames, but it's missing the "story highlights" prefix. i.e. for normal stories, the prefix of story is coming, but for story highlights, how do I bring in the "story highlights" prefix? |
#15
|
||||
|
||||
![]()
Not possible nor planned.
This is on the edge of what is possible using our current basic rename systems. You would need something like "if item is story item, user name scheme X else Y". That prefix is just a static text for the [default] stories/stories-highlights package names. Either statically add it for all items (will also be applied for non-story items) or work with the EventScripter to get it only for story items.
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#16
|
|||
|
|||
![]()
So is it the case that stories and story highlights are different from ig such that you can't do the same for highlights as you did for stories?
|
#17
|
||||
|
||||
![]()
No anything is possible but the amount of work required to do what you want is just too high.
My last post explains, which logic would be required but does not exist in our current rename system (property based conditions). If more users want the same, we can think about it. Also as explained, it is already possible using an EventScripter script.
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#18
|
|||
|
|||
![]()
Script may not be necessary if those files go into package name with "story-highlights" prefix. Create a packagizer rule to prepend the string to file name based on the package name.
|
#19
|
|||
|
|||
![]()
OK I think I got it, thanks. It's a bit less flexible as I can only add a string before or after <jd:orgfilename> and not inside it, but it's okay I guess.
|
#20
|
|||
|
|||
![]() Quote:
If you post your current filename pattern and the desired position of the tag, I/@psp might be able to help. |
#21
|
||||
|
||||
![]()
mgpai is right; I didn't think about that!
Yes, you could indeed extract that string from the package name and put it into the file names via Packagizer rule.
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#22
|
|||
|
|||
![]()
Well I simply made
Story Highlights - <jd:orgfilename> <jd:orgfilename> includes the whole string of "date - uploader - extra info - .extension". How would I insert a string in this when it's a monolithic tag? All the other dynamic variables are similar. I can't see any way unless there is a way to further split these dynamic variables into smaller pieces. |
#23
|
||||
|
||||
![]()
Here is my super basic attempt:
Example highlight story of IG user "50cent": Code:
instagram.com/stories/highlights/17857931737875716/ Example rule screenshot: ![]() Example file name output: Code:
story highlights - Final Lap Tour_2023-07-14_50cent - CurqFFXuml4 01_of_79 - -.jpg
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#24
|
|||
|
|||
![]() Quote:
Create a packagizer rule: Code:
if package name : contains not : "story highlights -" and filename contains : *story highlights -* then set filename : <jd:orgfilename:1><jd:orgfilename:2> |
#25
|
|||
|
|||
![]()
How does the :1 and :2 stuff work?
BTW, I keep forgetting but this has come up again, in packagizer, if I want to append a string at the end of the packagename, it never works. It just replaces the entire packagename with the string. Actually I think I mentioned it before but yea anyway in the "... then set" section I set Package Name to "<jd:orgpackagename> blah" instead of appending, it adds it renames the whole packagename to "blah". Is this a bug? |
#26
|
||||
|
||||
![]()
those are references to the matching group index from your regex
in easy/simple mode, first * = 1, 2nd * = 2 and so on in regex mode (checkbox on the right), first matching group (...) = 1, 2nd matching group (...) = 2 and so on
__________________
JD-Dev & Server-Admin |
#27
|
||||
|
||||
![]() Quote:
you're looking for Quote:
__________________
JD-Dev & Server-Admin |
#28
|
|||
|
|||
![]()
I couldn't understand it at all unfortunately. The packagizer listing just says it replaces with previous value where placeholder is used, but that just makes me more confused luls. Could you give an example? At the moment whether I use orgpackagename or append, both just disappear and the string I want to append replaces the whole packagename.
|
#29
|
||||
|
||||
![]()
Let's say your package name is:
Code:
something here - some other thing here If... package name contains: Code:
* - some other thing here Filename... Code:
<jd:orgpackagename:1> _ <jd:orgfilename> Code:
something here
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#30
|
|||
|
|||
![]() Quote:
|
#31
|
||||
|
||||
![]()
@serrato: Please test the given example from pspzockerscene
__________________
JD-Dev & Server-Admin |
#32
|
||||
|
||||
![]()
@serrato: Please provide example link!
Not every link does have a package name set by plugin, thus you cannot reference to it because it is empty and that's why Quote:
Quote:
We can help best if you do provide: 1.) example link 2.) your rule that doesn't work as expected
__________________
JD-Dev & Server-Admin |
#33
|
|||
|
|||
![]() Quote:
EDIT: I presumed that since JD eventually figures out a name for any package at all, that appending a string would be simple. |
#34
|
||||
|
||||
![]() Quote:
Quote:
See, JDownloader will either put them into a package name "Various" (based on your settings) or name then after the file name inside. Example for a link that will end up in a package "without name": Code:
ping.online.net/200Mo.dat Code:
instagram.com/p/DEmNp9oRJns/ You cannot apply something to a non-existent package name. Rule 1: Apply a static text to all packages that have names. Rule 2: For packages without names, set the file name as package name and apply your static text. I've created two rules and exported them. Download: workupload.com/file/4mL8TUK9G6t Screenshots of these rules: Rule 1:
Spoiler:
![]() Rule 2:
Spoiler:
![]() Rule 1 will work for items with pre-set package names (e.g. instagram links) while rule 2 will work for all items that do not have a package name set.
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download Last edited by pspzockerscene; 09.01.2025 at 13:26. |
#35
|
|||
|
|||
![]() Quote:
|
#36
|
||||
|
||||
![]()
I've just edited my recent reply as half of the things I described were wrong.
At this moment there is simply no way to check for "package name is not set". Without this, the only way for you to do what you are trying to do is to do it via an EventScripter script: EventScripter forum thread: https://board.jdownloader.org/showthread.php?t=70525 EventScripter help article: https://support.jdownloader.org/know...event-scripter Sorry for the confusion.
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#37
|
|||
|
|||
![]()
Yeah I was just about to write that only one of the two can be enabled and so only one scenario can be taken care of. Both activated at the same time begin conflicting.
No biggie though, thanks for the help so far! |
#38
|
||||
|
||||
![]()
If you need help with the required EventScripter script, feel free to ask for help in our EventScripter subforum:
https://board.jdownloader.org/forumdisplay.php?f=52
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#39
|
||||
|
||||
![]()
Working on easy solution to support this via Packagizer Rules
__________________
JD-Dev & Server-Admin |
#40
|
|||
|
|||
![]()
It seems like story highlights are not being crawled at all as of a few updates (not sure when it started but it's fairly recent). I thought maybe it was packagizer messing with it, but even after disabling my packagizer rule, it errors out on any story highlight.
|
![]() |
Thread Tools | |
Display Modes | |
|
|