JDownloader Community - Appwork GmbH
 

Go Back   JDownloader Community - Appwork GmbH > International Support > JDownloader 2
Reply
 
Thread Tools Display Modes
  #1  
Old 03.07.2015, 23:00
iSolutionJA
Guest
 
Posts: n/a
Default Packagizer Renaming

Hi @all,

I need help renaming episodes. I am trying to rename files using the packagizer. Each time I grab the link, it is called "videoplayback.mp4" in jdownloader but with my current set of rules it is renamed to Ergo Proxy Episode 1 but I want the number to increment by 1 each time I grab a link(eg. Ergo Proxy Episode 2 then Ergo Proxy Episode 3 etc.). Is that possible? Here is my current rule in packagizer. **External links are only visible to Support Staff****External links are only visible to Support Staff**
Reply With Quote
  #2  
Old 04.07.2015, 01:46
iSolutionJA
Guest
 
Posts: n/a
Default [User feedback required] Incrementing values in file name

Is there a way to increment values when renaming a file using packagizer?
For example if a file is called "video.mp4" can we rename it to "Episode 1" and keep incrementing the "1" each time a file goes into that package?
http://imgur.com/5ffGwLG

Last edited by iSolutionJA; 04.07.2015 at 04:45.
Reply With Quote
  #3  
Old 04.07.2015, 04:54
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,614
Default

Same question, two threads not needed.

Package customiser can not add a random number to it, it wouldn't work well even if it did, as if you added them out of sequence they be all wrong!

Package customiser works off identifying markers, so if you want to rename content you restructure the filename (move order or remove content). There is no way to track each match of a rule or know its given order by how many times a rule runs. Best bet would be, add links to notepad in order then add extra parameter to the url like 'filename=yourdesiredfilename' parse that and set filename.

These added links are from browser extension? is it anything like flashgot where it can let you set filename/path at the time of adding link in firefox?



raztoki
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]

Last edited by raztoki; 04.07.2015 at 05:00.
Reply With Quote
  #4  
Old 04.07.2015, 05:07
iSolutionJA
Guest
 
Posts: n/a
Default

I am going to be adding them in sequence. For example I found a script on github that I can run in the console window of chrome to generate bit.ly links for all episodes for a particular anime on Kissanime. I would then just copy the link once I am redirected and it would go into jdownloader and the episode value would increment each time I add link that meets the criteria.

I don't understand "if not, would be add links to notepad in order then add extra parameter to the url like 'filename=yourdesiredfilename'" How does that work?
Reply With Quote
  #5  
Old 04.07.2015, 05:44
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,614
Default

url + &filename=somefilename.mp4

then in jdownloader package customiser rule make something that parses filename arugment and sets it
if sourceurl contains, regexrule (?:&|\?)filename=([^&]+)

then in filename <jd:source:1>
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #6  
Old 04.07.2015, 05:54
iSolutionJA
Guest
 
Posts: n/a
Default

I don't really understand that could you show me in steps.
First two episodes: "bit.ly/1IVAtva" and "http://bit.ly/1IVAu2f"(it is going to redirect to a googlevideo link)

I want the name to be Ergo Proxy Episode 1, Ergo Proxy Episode 2 etc.
Reply With Quote
  #7  
Old 04.07.2015, 06:17
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,614
Default

edit the script so it changes url before sending the request to bit.ly
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #8  
Old 04.07.2015, 06:39
iSolutionJA
Guest
 
Posts: n/a
Default

The script that is on github only grabs the link that is provided on each episode page and shorten them using bit.ly so I don't have to go back on forth on each episode page. The link is a googlevideo link. When I copy the googlelink the file name is videoplayback.mp4. This is the script that is used to grab the download links on each episode page "**External links are only visible to Support Staff**

You mentioned adding parameters to the url in notepad could you show me how you would do that?

Last edited by iSolutionJA; 04.07.2015 at 06:42.
Reply With Quote
  #9  
Old 04.07.2015, 11:15
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,614
Default

embeds google video, and uses dummy youtube player. I'll make a plugin for the site some time tonight then you wont have to use javascript in console.
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #10  
Old 04.07.2015, 15:03
iSolutionJA
Guest
 
Posts: n/a
Default

Thanks raztoki. That would be greatly appreciated.
Reply With Quote
  #11  
Old 06.07.2015, 07:27
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,614
Default

decrypter made.
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
Reply


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 16:20.
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 - 2024, Jelsoft Enterprises Ltd.