This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def download_data(s3_keys: List[Tuple[str, int]], total_size: int): | |
size_progress = Progress( | |
"{task.description}", | |
TextColumn("[bold blue]{task.fields[key]}", justify="right"), | |
BarColumn(), | |
DownloadColumn(), | |
TransferSpeedColumn(), | |
TimeRemainingColumn(), | |
) | |
keys_progress = Progress("{task.description}", BarColumn(), "{task.completed} of {task.total}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
from telegram.ext import Updater | |
from telegram.ext.commandhandler import CommandHandler | |
import logging | |
# Enable logging | |
logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', | |
level=logging.INFO) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import unicode_literals, division, absolute_import | |
import pytest | |
from flexget.entry import Entry | |
from flexget.plugins.list.trakt_list import TraktSet | |
@pytest.mark.online | |
class TestTraktList(object): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
from datetime import datetime | |
from dateutil import parser | |
from dateutil.relativedelta import relativedelta | |
host = '<HOST NAME>' | |
port = 7171 | |
token = '<USER TOKEN>' | |
get_movies_endpoint = '/api/movie_queue/?page=1&max=1000&queue_name=default&is_downloaded=false&sort_by=added&order=desc' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import unicode_literals, division, absolute_import | |
import logging | |
import re | |
from jsonschema.compat import str_types | |
from flexget import plugin | |
from flexget.event import event | |
from flexget.entry import Entry | |
from imdb import IMDb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import unicode_literals, division, absolute_import | |
import re | |
import socket | |
import threading | |
from flexget.entry import Entry | |
import xml.etree.ElementTree as ET | |
import logging | |
from flexget.config_schema import register_config_key, format_checker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import unicode_literals, division, absolute_import | |
from urlparse import urlparse | |
import logging | |
import requests | |
from flexget import plugin | |
from flexget.event import event | |
from flexget.entry import Entry | |
from flexget.utils import qualities | |
from requests import RequestException |