Uploads and adds a container file to pyLoad. :param filename: filename, extension is important so it can correctly decrypted :param data: file content
(self, filename, data)
| 691 | |
| 692 | @permission(PERMS.ADD) |
| 693 | def uploadContainer(self, filename, data): |
| 694 | """Uploads and adds a container file to pyLoad. |
| 695 | |
| 696 | :param filename: filename, extension is important so it can correctly decrypted |
| 697 | :param data: file content |
| 698 | """ |
| 699 | th = open(join(self.core.config["general"]["download_folder"], "tmp_" + filename), "wb") |
| 700 | th.write(str(data)) |
| 701 | th.close() |
| 702 | |
| 703 | self.addPackage(th.name, [th.name], Destination.Queue) |
| 704 | |
| 705 | @permission(PERMS.MODIFY) |
| 706 | def orderPackage(self, pid, position): |
no test coverage detected