You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
810 B

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. Signals list that DownloadManager, ProcessWrapper
  2. threads send (DownloadThread.py)
  3. HANDLER
  4. =======
  5. SignalHandler.py
  6. class DownloadHandler()
  7. def handle(self, msg):
  8. .
  9. .
  10. .
  11. HEADER
  12. ======
  13. [
  14. 'finish', Download thread finished
  15. 'close', Download thread stopped by the user
  16. 'error', Error occured while downloading
  17. 'playlist', Playlist current download no/from
  18. 'youtube', Pre-Processing
  19. 'download', Download stuff [size, percent, eta, speed]
  20. 'ffmpeg', Post-Processing
  21. 'ignore', Ignore this header
  22. 'remove', Removing extra DASH files
  23. 'filename', Extract filenames
  24. ]
  25. INDEX
  26. =====
  27. index == -1: GLOBAL
  28. index != -1: URL IN COLUMN
  29. DATA
  30. ====
  31. e.g.
  32. ['57.3%', '20.63MiB', '542.44KiB/s', '00:16']
  33. DATA-PACK
  34. =========
  35. DataPack.header = header
  36. DataPack.index = index
  37. DataPack.data = data