MCPcopy Index your code
hub / github.com/pyload/pyload / process

Method process

module/plugins/hoster/XHamsterCom.py:37–47  ·  view source on GitHub ↗
(self, pyfile)

Source from the content-addressed store, hash-verified

35 __authors__ = []
36
37 def process(self, pyfile):
38 self.pyfile = pyfile
39
40 if not self.file_exists():
41 self.offline()
42
43 quality = self.config.get('quality')
44 self.desired_quality = quality if quality is not None else '480p'
45
46 pyfile.name = self.get_file_name() + '.' + self.desired_quality + '.mp4'
47 self.download(self.get_file_url())
48
49 def download_html(self):
50 url = self.pyfile.url

Callers

nothing calls this directly

Calls 6

file_existsMethod · 0.95
get_file_nameMethod · 0.95
get_file_urlMethod · 0.95
offlineMethod · 0.45
getMethod · 0.45
downloadMethod · 0.45

Tested by

no test coverage detected