Example #1
0
    def clock_time_zone():
        valid_time_zones = ["est", "gtm", "utm"]
        time_zone = environment_env("CLOCK_TIME_ZONE")

        if time_zone not in valid_time_zones:
            return valid_time_zones[0]

        return time_zone
Example #2
0
 def api_client_secret_file():
     return environment_env("API_CLIENT_SECRET_FILE")
Example #3
0
 def video_release_date():
     try:
         return date_time.strptime(environment_env("VIDEO_RELEASE_DATE"),
                                   "%Y-%m-%dT%H:%M")
     except:
         print("Please, provide a valid VIDEO_RELEASE_DATE")
Example #4
0
 def clock_waiting_time():
     try:
         return float(environment_env("CLOCK_WAITING_TIME"))
     except:
         return 5
Example #5
0
 def comment_message():
     return environment_env("COMMENT_MSG", "First!")
Example #6
0
 def channel_url():
     return environment_env("CHANNEL_URL")
Example #7
0
 def channel_last_video_id():
     return environment_env("CHANNEL_LAST_VIDEO_ID")
Example #8
0
 def api_token_storage():
     return environment_env("API_TOKEN_STORAGE")
Example #9
0
 def channel_id():
     return environment_env("CHANNEL_ID")
Example #10
0
 def api_version():
     return environment_env("API_VERSION", "v3")
Example #11
0
 def api_service_name():
     return environment_env("API_SERVICE_NAME", "youtube")
Example #12
0
 def api_scope():
     return [
         environment_env(
             "API_SCOPE",
             "https://www.googleapis.com/auth/youtube.force-ssl")
     ]
Example #13
0
 def text_file():
     return environment_env("TEXT_FILE")
Example #14
0
 def video_id():
     return environment_env("VIDEO_ID")