Ejemplo n.º 1
0
#!/usr/bin/env python3

from utils.hotkeys import Hotkeys
from utils.gamewindow import GameWindow
from utils.tools import Tools
from utils.login import Login
from config.config import Config
import time
import os
import threading

tools = Tools()
gamewindow = GameWindow()
login = Login()
hotkeys = Hotkeys()
config = Config()


class App():
    def main(self):
        try:
            x = 0
            global character_name, spell_to_use, exit_request
            exit_request = False
            # config.list_config()

            tools.set_tibia_renderer()
            tools.open_tibia_if_closed()

            cast_spell = self.print_cabecalho()
            login.start_login(character_name)
Ejemplo n.º 2
0
# !/usr/bin/env python
# -*- coding: utf-8 -*-

import pandas as pd
from utils.tools import Tools
from datetime import datetime
# odfpy is required

obj = Tools()
numChannels = 0

planilha = pd.read_csv("channels.csv", encoding="utf-8")
planilha = planilha.fillna('')

for index, row in planilha.iterrows():

    connection = row['url']
    print('[VERIFICANDO CANAL] ' + row['channel-name'])

    if not connection:
        obj.addChannelListMissing(row['channel-name'])
        print('Canal Offline')
    else:
        state = obj.checkChannel(connection)
        if state == "State.Ended" or state == "State.Error":
            obj.addChannelListOffline(row['channel-name'])
            print('Canal Offline')
        else:
            obj.addChannelPlaylist(row['group-title'], row['tvg-id'],
                                   row['tvg-name'],
                                   row['tvg-logo'], row['url-tvg'],