JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 31.07.2018, 03:15
JToTheP JToTheP is offline
Baby Loader
 
Join Date: Jul 2012
Posts: 6
Default Twitter.com handles in filenames

If possible, when downloading images and videos from twitter I think it'd be useful to have the username of the account they're from added to the filename, similar to what is done with images downloaded from the website deviantart. This would be good for when you want to revisit a since forgotten account that an image or video you previously downloaded originated from.
Reply With Quote
  #2  
Old 31.07.2018, 11:14
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 63,353
Default

__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 13.11.2018, 01:22
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 48,395
Default

Added packagizer property "username" for this.
Usage:
<jd:prop:PROPERTYID>
__________________

Ad-free installers || Werbefreie Installer
Windows Setup<--JD2 BETA-->Linux Setup x86 || Linux Setup x64 || Mac Setup
-----=>Support Chat<=-----
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
That's true James
Quote:
Originally Posted by James
Die Leute verstehen einfach nicht dass nur weil man mit einer Waffe auch auf Menschen schießen kann dass ein Schützenver​ein kein Ort für Amoklaufide​en ist
Reply With Quote
  #4  
Old 04.04.2019, 15:55
onthroughtime onthroughtime is offline
Vacuum Cleaner
 
Join Date: Sep 2017
Posts: 19
Default

i've been trying to get this to work but for some reason i'm unable to, i've tried using both the twimg.com and twitter.com url's in the downloadurl and source url and i've added
<jd:prop:PROPERTYID> to the "then set... filename" option but it still continues to pull the tweet numbers and original filename only

i'll give these tweets for example links since they have images in them and they're public tweets
**External links are only visible to Support Staff****External links are only visible to Support Staff**
**External links are only visible to Support Staff****External links are only visible to Support Staff**

i may be fully doing this wrong because the post above mentions adding username to the packagizer properties but i can't seem to find that either
Reply With Quote
  #5  
Old 04.04.2019, 17:44
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 544
Default

<jd:prop:PROPERTYID> is the syntax. So, you will have to use <jd:prop:username> to add/insert the user name.
Reply With Quote
  #6  
Old 04.04.2019, 22:08
onthroughtime onthroughtime is offline
Vacuum Cleaner
 
Join Date: Sep 2017
Posts: 19
Default

Quote:
Originally Posted by mgpai View Post
<jd:prop:PROPERTYID> is the syntax. So, you will have to use <jd:prop:username> to add/insert the user name.
changed it to that and still getting the same thing, tried it in both file name fields at the same time and each with the other turned off too
Reply With Quote
  #7  
Old 05.04.2019, 09:18
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 544
Default

Code:
If downloadurl contains: twitter.com
Then set Filename: <jd:prop:username> <jd:orgfilename>

It is working, but seems to support only some twitter url formats. If the username is available in urls, you can create a packagizer rule to pick it from there and add it to the filename (without using this placeholder).
Reply With Quote
  #8  
Old 05.04.2019, 21:44
ominus ominus is offline
Junior Loader
 
Join Date: Jun 2012
Posts: 13
Default

Quote:
Originally Posted by mgpai View Post
Code:
If downloadurl contains: twitter.com
Then set Filename: <jd:prop:username> <jd:orgfilename>

It is working, but seems to support only some twitter url formats. If the username is available in urls, you can create a packagizer rule to pick it from there and add it to the filename (without using this placeholder).
this might be the solution to my problem which I just posted here:
https://board.jdownloader.org/showthread.php?t=80246

how exactly do you do this? how do you pick the name from the rule? I am checking the packaziger rules but I dont see such option.
Reply With Quote
  #9  
Old 05.04.2019, 23:55
onthroughtime onthroughtime is offline
Vacuum Cleaner
 
Join Date: Sep 2017
Posts: 19
Default

Quote:
Originally Posted by mgpai View Post
Code:
If downloadurl contains: twitter.com
Then set Filename: <jd:prop:username> <jd:orgfilename>

It is working, but seems to support only some twitter url formats. If the username is available in urls, you can create a packagizer rule to pick it from there and add it to the filename (without using this placeholder).
tried 20 different tweets from different accounts and i'm still getting nothing, the only time i've been able to get the username to pop up is scanning the twitter account itself and even then it only brings up the name in the package

it's weird how instagram does it automatically without any packagizer messing around but twitter for some reason refuses to let me do it
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 04: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 - 2019, Jelsoft Enterprises Ltd.