#1
|
|||
|
|||
Just curious - how is JD2 able to resolve filenames on certain filehosts so well?
For example:
**External links are only visible to Support Staff****External links are only visible to Support Staff** displays the filename as "Dance Classics - Best Of V....part2.rar" when the full filename is actually: "Dance Classics - Best Of Vol. 2.part2.rar The shortened filename is also used when AllDebrid unrestricts it on their website. Obviously this is a problem when there is a Vol. 1, Vol. 2, etc... Yet JD2 knows exactly the full filename upon adding the original link, and is smart enough not to use the short filename even after unrestricting with the AllDebrid plugin. Does each filehoster plug-in have code that cleverly parses the HTML for the filename or am I missing something obvious? Last edited by raztoki; 24.08.2017 at 18:25. Reason: do not unmask urls |
#2
|
|||
|
|||
Never mind - this is where the magic happens:
Code:
String fileName = this.br.getRegex("<title>\\s*(?:Download\\s+file|Datei\\s+downloaden)\\s*(.*?)\\s*\\(([\\d\\.,]+\\s*[BMGTP]{1,2})\\)\\s*\\|\\s*TurboBit\\.net").getMatch(0); |
#3
|
||||
|
||||
depends on the file hoster, best bet is to check the source code.
raztoki
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#4
|
|||
|
|||
Quote:
|
Thread Tools | |
Display Modes | |
|
|