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.

48 lines
980 B

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. Signals list, that DownloadManager thread sends (DownloadThread.py)
  2. HANDLER
  3. =======
  4. SignalHandler.py
  5. class DownloadHandler()
  6. def handle(self, msg):
  7. .
  8. .
  9. .
  10. SIGNALS
  11. =======
  12. ['finish', -1]: All downloads have finished
  13. ['finish', index]: Download of url in index has finished
  14. ['close', -1]: Closing down DownloadManager thread
  15. ['close', index]: Closing down url in index
  16. ['error', index]: Error occured url, index
  17. ['playlist', data, index]: Playlist data for url, index
  18. ['[youtube]', index]: Pre-Processing for url, index
  19. ['[download]', data, index]: Downloading url, index
  20. ['[ffmpeg]', index]: Post-Processing for url, index
  21. ['ignore', index] Do nothing
  22. EXAMPLES
  23. ========
  24. ['[youtube]', 'Setting', 'language', 0]
  25. ['[youtube]', 'RBumgq5yVrA:', 'Downloading', 'webpage', 0]
  26. ['[download]', '0.0%', 'of', '4.42MiB', 'at', '24.48KiB/s', 'ETA', '03:04', 0]
  27. ['[download]', '0.1%', 'of', '4.42MiB', 'at', '63.81KiB/s', 'ETA', '01:10', 0]