MCPcopy Create free account
hub / github.com/pyload/pyload / write

Method write

module/plugins/hoster/YoutubeCom.py:58–69  ·  view source on GitHub ↗

writes response

(self, buf)

Source from the content-addressed store, hash-verified

56 HTTPRequest.__init__(self, cookies=cookies, options=options)
57
58 def write(self, buf):
59 """ writes response """
60 if self.limit and self.rep.tell() > self.limit or self.abort:
61 rep = self.getResponse()
62 if self.abort:
63 raise Abort()
64 f = open("response.dump", "wb")
65 f.write(rep)
66 f.close()
67 raise Exception("Loaded Url exceeded limit")
68
69 self.rep.write(buf)
70
71
72class Ffmpeg(object):

Callers 1

_handle_subtitlesMethod · 0.45

Calls 3

AbortClass · 0.85
getResponseMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected