pil.py 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. try:
  2. import logger
  3. import helpers
  4. except ImportError:
  5. from . import logger
  6. from . import helpers
  7. import os
  8. def noinit(self):
  9. pass
  10. def initialize():
  11. global ig_api
  12. global ig_user
  13. global ig_pass
  14. global dl_user
  15. global dl_batchusers
  16. global dl_path
  17. global dl_lives
  18. global dl_replays
  19. global dl_comments
  20. global log_to_file
  21. global run_at_start
  22. global run_at_finish
  23. global show_cookie_expiry
  24. global config_path
  25. global config
  26. global args
  27. global uargs
  28. global livestream_obj
  29. global replays_obj
  30. global broadcast_downloader
  31. global epochtime
  32. global datetime_compat
  33. global live_folder_path
  34. global use_locks
  35. global comment_thread_worker
  36. global segments_json_thread_worker
  37. global assemble_arg
  38. global ffmpeg_path
  39. global clear_temp_files
  40. global has_guest
  41. global do_heartbeat
  42. global proxy
  43. ig_api = None
  44. ig_user = ""
  45. ig_pass = ""
  46. dl_user = ""
  47. dl_batchusers = []
  48. dl_path = os.getcwd()
  49. dl_lives = True
  50. dl_replays = True
  51. dl_comments = True
  52. log_to_file = True
  53. run_at_start = ""
  54. run_at_finish = ""
  55. show_cookie_expiry = False
  56. config_path = os.path.join(os.getcwd(), "pyinstalive.ini")
  57. config = None
  58. args = None
  59. uargs = None
  60. livestream_obj = None
  61. replays_obj = None
  62. broadcast_downloader = None
  63. epochtime = helpers.strepochtime()
  64. datetime_compat = helpers.strdatetime_compat()
  65. live_folder_path = ""
  66. use_locks = True
  67. comment_thread_worker = None
  68. segments_json_thread_worker = None
  69. assemble_arg = None
  70. ffmpeg_path = None
  71. clear_temp_files = False
  72. has_guest = None
  73. do_heartbeat = False
  74. proxy = None