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: 62,452
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,213
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: 18
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: 520
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: 18
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: 520
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: 18
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
  #10  
Old 06.04.2019, 06:52
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 520
Default

Quote:
Originally Posted by ominus View Post
... 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.
Code:
Sourceurls(s) > contains: twitter.com/*/status/
then set > Filename: <jd:source:1> <jd:orgfilename>
Reply With Quote
  #11  
Old 06.04.2019, 15:31
onthroughtime onthroughtime is offline
Vacuum Cleaner
 
Join Date: Sep 2017
Posts: 18
Default

Quote:
Originally Posted by mgpai View Post
Code:
Sourceurls(s) > contains: twitter.com/*/status/
then set > Filename: <jd:source:1> <jd:orgfilename>
this worked, the username is in the filename now

also to add on, adding "<jd:source:1>" to the "then set.... package name" adds them to the same package too whereas without this it just shows them as 1-4 seperate packages depending on how many of the 4 available photos are in the tweet

Last edited by onthroughtime; 06.04.2019 at 15:34.
Reply With Quote
  #12  
Old 06.04.2019, 16:56
ominus ominus is offline
Junior Loader
 
Join Date: Jun 2012
Posts: 13
Default

Quote:
Originally Posted by onthroughtime View Post
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

I think I figured out why this is not working with DownloadUrl and the jd:property:username placeholder but it works with the SourceUrl solution which mgpai provided.

The main twitter url and the direct urls of the pictures are not the same at all.

for example:
main twitter url which you copy to Lingrabber
**External links are only visible to Support Staff****External links are only visible to Support Staff**

extacted urls of the pictures from the main url
**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**
**External links are only visible to Support Staff****External links are only visible to Support Staff**

The main twitter url contains the username account (MingNa), so we can extract it from there with SourceUrl. But the picture urls have a complete different domain (twimg) and they dont contain at all the username account. That's why JD breaks them into three different packages and the jd:property:username placeholder fails to get the username.

I dont know if the same thing happens with Instagram but JD somehow manages to get the username, I havent tested that.
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 00:05.
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.