diff options
author | Frederik Möllers <frederikmoellers@posteo.de> | 2015-06-23 19:59:30 +0200 |
---|---|---|
committer | Frederik Möllers <frederikmoellers@posteo.de> | 2015-06-23 19:59:30 +0200 |
commit | b7acc14f4a1e6f2a5d635dcbffb9cd985eb1640f (patch) | |
tree | 8510e6f4680e638bc9bd5fac95595a54309257ff /module/plugins/hoster | |
parent | Merge pull request #1533 from frederikmoellers/stable (diff) | |
download | pyload-b7acc14f4a1e6f2a5d635dcbffb9cd985eb1640f.tar.xz |
Update/Fix GamefrontCom hoster plugin
GameFront uses a <span> tag around long filenames. This caused the
plugin to include the tag in the filename.
Instead of the (possibly abbreviated) filename in the page's content,
the title (HTML <title> tag) is now used.
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r-- | module/plugins/hoster/GamefrontCom.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/hoster/GamefrontCom.py b/module/plugins/hoster/GamefrontCom.py index 590a85ee8..f987a371a 100644 --- a/module/plugins/hoster/GamefrontCom.py +++ b/module/plugins/hoster/GamefrontCom.py @@ -6,7 +6,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo class GamefrontCom(SimpleHoster): __name__ = "GamefrontCom" __type__ = "hoster" - __version__ = "0.07" + __version__ = "0.08" __pattern__ = r'http://(?:www\.)?gamefront\.com/files/(?P<ID>\d+)' @@ -15,7 +15,7 @@ class GamefrontCom(SimpleHoster): __authors__ = [("Walter Purcaro", "vuolter@gmail.com")] - NAME_PATTERN = r'>File Name:</dt>\s*<dd>(?P<N>.+?)<' + NAME_PATTERN = r'<title>(?P<N>.+?) \| Game Front</title>' SIZE_PATTERN = r'>File Size:</dt>\s*<dd>(?P<S>[\d.,]+) (?P<U>[\w^_]+)' OFFLINE_PATTERN = r'<p>File not found' |