pil.py 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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_path
  16. global dl_lives
  17. global dl_replays
  18. global dl_comments
  19. global log_to_file
  20. global run_at_start
  21. global run_at_finish
  22. global show_cookie_expiry
  23. global config_path
  24. global config
  25. global args
  26. global uargs
  27. global livestream_obj
  28. global replays_obj
  29. global broadcast_downloader
  30. global epochtime
  31. global datetime_compat
  32. global live_folder_path
  33. global use_locks
  34. global comment_thread_worker
  35. global segments_json_thread_worker
  36. global assemble_arg
  37. global ffmpeg_path
  38. global clear_temp_files
  39. global has_guest
  40. ig_api = None
  41. ig_user = ""
  42. ig_pass = ""
  43. dl_user = ""
  44. dl_path = os.getcwd()
  45. dl_lives = True
  46. dl_replays = True
  47. dl_comments = True
  48. log_to_file = True
  49. run_at_start = ""
  50. run_at_finish = ""
  51. show_cookie_expiry = False
  52. config_path = os.path.join(os.getcwd(), "pyinstalive.ini")
  53. config = None
  54. args = None
  55. uargs = None
  56. livestream_obj = None
  57. replays_obj = None
  58. broadcast_downloader = None
  59. epochtime = helpers.strepochtime()
  60. datetime_compat = helpers.strdatetime_compat(epochtime)
  61. live_folder_path = ""
  62. use_locks = True
  63. comment_thread_worker = None
  64. segments_json_thread_worker = None
  65. assemble_arg = None
  66. ffmpeg_path = None
  67. clear_temp_files = False
  68. has_guest = None