pil.py 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. global verbose
  44. global skip_merge
  45. global config_login_overridden
  46. global kill_segment_thread
  47. ig_api = None
  48. ig_user = ""
  49. ig_pass = ""
  50. dl_user = ""
  51. dl_batchusers = []
  52. dl_path = os.getcwd() + "/"
  53. dl_lives = True
  54. dl_replays = True
  55. dl_comments = True
  56. log_to_file = True
  57. run_at_start = ""
  58. run_at_finish = ""
  59. show_cookie_expiry = False
  60. config_path = os.path.join(os.getcwd(), "pyinstalive.ini")
  61. config = None
  62. args = None
  63. uargs = None
  64. livestream_obj = None
  65. replays_obj = None
  66. broadcast_downloader = None
  67. epochtime = helpers.strepochtime()
  68. datetime_compat = helpers.strdatetime_compat()
  69. live_folder_path = ""
  70. use_locks = True
  71. comment_thread_worker = None
  72. segments_json_thread_worker = None
  73. assemble_arg = None
  74. ffmpeg_path = None
  75. clear_temp_files = False
  76. has_guest = None
  77. do_heartbeat = False
  78. proxy = None
  79. verbose = False
  80. skip_merge = False
  81. config_login_overridden = False
  82. kill_segment_thread = False