JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 06.05.2021, 23:28
karimmaster101 karimmaster101 is offline
DSL User
 
Join Date: Jun 2014
Posts: 36
Default [Packagizer]Request: Feature to the Tiktok Plugin (Rename Option)

Hi, I want to ask if there is any way to be able to add the title of the tiktok video page to the file name. Right now the JD rename output tiktok videos like this
Date_@ProfileName_VIDEOID

I hope for a tiny change, something like this
Date_@ProfileName_VIDEOID_PageTitle

So, I want the name contains the caption and hashtags for the video

Thanks in advance
Reply With Quote
  #2  
Old 07.05.2021, 09:49
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 72,219
Default

Can you please provide example links?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 07.05.2021, 13:56
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 58,924
Default

For the next CORE-update, I've added two Packagizer properties:
- hashtags = all hashtags as one string e.g. "#jdownloader#is#awesome"
- description = full post text (with hashtags)

Here is an example rule which will add all hashtags to the beginning of tiktok filenames:

You will need to wait for the update in order for this to work!!

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
JDownloader 2 Setup Download
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 07.05.2021, 22:32
karimmaster101 karimmaster101 is offline
DSL User
 
Join Date: Jun 2014
Posts: 36
Default

Quote:
Originally Posted by pspzockerscene View Post
For the next CORE-update, I've added two Packagizer properties:
- hashtags = all hashtags as one string e.g. "#jdownloader#is#awesome"
- description = full post text (with hashtags)

Here is an example rule which will add all hashtags to the beginning of tiktok filenames:

You will need to wait for the update in order for this to work!!

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-
That's exactly what I need. Can't wait till the next update. Many Thanks
Reply With Quote
  #5  
Old 08.05.2021, 20:41
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 72,219
Default

Update is already live. Please know that this will only work for new added links
__________________
JD-Dev & Server-Admin
Reply With Quote
  #6  
Old 13.05.2021, 11:24
karimmaster101 karimmaster101 is offline
DSL User
 
Join Date: Jun 2014
Posts: 36
Default

Quote:
Originally Posted by Jiaz View Post
Update is already live. Please know that this will only work for new added links
I'm trying <jd:prop:hashtags>_<jd:orgfilename> but unfortunately nothing changed at all, except extra _ at the beginning and not adding the date as usual

Current build: Wed May 12 21:46:27 CEST 2021
Reply With Quote
  #7  
Old 13.05.2021, 12:11
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,315
Default

Quote:
Originally Posted by karimmaster101 View Post
I'm trying <jd:prop:hashtags>_<jd:orgfilename> but unfortunately nothing changed at all, except extra _ at the beginning and not adding the date as usual
Try this:
Code:
<jd:prop:COMMENT>_<jd:orgfilename>
Reply With Quote
  #8  
Old 13.05.2021, 15:38
karimmaster101 karimmaster101 is offline
DSL User
 
Join Date: Jun 2014
Posts: 36
Default

Quote:
Originally Posted by mgpai View Post
Try this:
Code:
<jd:prop:COMMENT>_<jd:orgfilename>
It works except it doesn't retrieve the video date as the default behavior did.

BTW: how do you know to use the COMMENT variable? is there a documentation for these variables? when I click the right click nothing shows up.

Thanks in advance
Reply With Quote
  #9  
Old 13.05.2021, 15:58
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,315
Default

Quote:
Originally Posted by karimmaster101 View Post
It works except it doesn't retrieve the video date as the default behavior did.
I currently do not see any property which is storing the date.

Quote:
BTW: how do you know to use the COMMENT variable? is there a documentation for these variables? when I click the right click nothing shows up.
It can be found in the plugin source code. The developers may revert back the property name to what is was originally intended to be, in which case you will have to modify the rule and use that instead.
Reply With Quote
  #10  
Old 13.05.2021, 16:08
karimmaster101 karimmaster101 is offline
DSL User
 
Join Date: Jun 2014
Posts: 36
Default

Quote:
Originally Posted by mgpai View Post
I currently do not see any property which is storing the date..
mmmm. I mean when I didn't use Packagizer JD automatically add the Post day to the filename when it starts downloading. I hope there is a way to maintain the same behavior
Reply With Quote
  #11  
Old 13.05.2021, 16:38
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 72,219
Default

can you please provide few more example links, then we can check it. either layout/website changed or removed by accident
__________________
JD-Dev & Server-Admin
Reply With Quote
  #12  
Old 13.05.2021, 16:41
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 72,219
Default

Please know that date is only available when fastlinkcheck is not enabled, see
Settings->Plugins->tiktok and disable fast linkcheck (default enabled)
__________________
JD-Dev & Server-Admin
Reply With Quote
  #13  
Old 13.05.2021, 16:49
karimmaster101 karimmaster101 is offline
DSL User
 
Join Date: Jun 2014
Posts: 36
Default

Quote:
Originally Posted by Jiaz View Post
Please know that date is only available when fastlinkcheck is not enabled, see
Settings->Plugins->tiktok and disable fast linkcheck (default enabled)
I know this fact. and I don't have any problem if the date will be added later when downloading start. My issue happens when I'm using Packagizer to get the Video page contents. Then the date didn't add at all neither when downloading nor just when grabbing the links.

My filename Setting of Packagizer I'm using right now is <jd:orgfilename>_##_<jd:prop:COMMENT>

Regarding the links, any link you could use to test.
**External links are only visible to Support Staff****External links are only visible to Support Staff**
Reply With Quote
  #14  
Old 13.05.2021, 17:17
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,315
Default

Quote:
Originally Posted by Jiaz View Post
Please know that date is only available when fastlinkcheck is not enabled, see
Settings->Plugins->tiktok and disable fast linkcheck (default enabled)
Quote:
Originally Posted by karimmaster101 View Post
Then the date didn't add at all neither when downloading nor just when grabbing the links.
Disable Fast Llinkcheck in plugin settings and recheck the link using 'Context menu > Check online status' command.
Reply With Quote
  #15  
Old 13.05.2021, 17:32
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 72,219
Default

You have to disable the Settings->Plugins->tiktok "fast link check" because the date is only availble with linkcheck, then orgfilename will contain the filename with date and rule works fine. Name set by packagizer is final and won't be changed by plugins.
Filename should better be
Quote:
<jd:prop:COMMENT><jd:orgfilename>
__________________
JD-Dev & Server-Admin
Reply With Quote
  #16  
Old 13.05.2021, 17:32
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 72,219
Default

@mgpai: customized packagizer rule won't be re-applied on linkcheck, he has to re-add the links
__________________
JD-Dev & Server-Admin
Reply With Quote
  #17  
Old 13.05.2021, 17:37
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,315
Default

Quote:
Originally Posted by Jiaz View Post
@mgpai: customized packagizer rule won't be re-applied on linkcheck, he has to re-add the links
Yes. You are right.
Reply With Quote
  #18  
Old 13.05.2021, 17:44
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 72,219
Default

@mgpai: another opportunity for a great script of yours
__________________
JD-Dev & Server-Admin
Reply With Quote
  #19  
Old 13.05.2021, 18:47
karimmaster101 karimmaster101 is offline
DSL User
 
Join Date: Jun 2014
Posts: 36
Default

@mgpai , @Jiaz Thanks a lot. It works like a charm. Best support forum EVER
Reply With Quote
  #20  
Old 14.05.2021, 09:14
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 72,219
Default

You're welcome
__________________
JD-Dev & Server-Admin
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 08:59.
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 - 2021, Jelsoft Enterprises Ltd.