Reused functions, and a couple import wildcards

pull/6/head
deathbybandaid 3 years ago
parent 2715e3adaa
commit 34e9e0713e

@ -4,13 +4,11 @@ import webbrowser
from plexapi.server import PlexServer from plexapi.server import PlexServer
import requests import requests
import PrerollUpdate import PrerollUpdate
import os import os
from os.path import exists from os.path import exists
from configparser import *
import json import json
import time import time
starttime = time.time() starttime = time.time()
@ -689,6 +687,7 @@ class Rollarr(App):
# a list() of filenames and folders is returned # a list() of filenames and folders is returned
self.WeekPath.set_value(';'.join(filelist)) self.WeekPath.set_value(';'.join(filelist))
"""
def open_fileselection_dialogPath(self, widget): def open_fileselection_dialogPath(self, widget):
self.fileselectionDialog = gui.FileSelectionDialog('File Selection Dialog', 'Select files and folders', self.fileselectionDialog = gui.FileSelectionDialog('File Selection Dialog', 'Select files and folders',
True, '.', True, False) True, '.', True, False)
@ -700,6 +699,7 @@ class Rollarr(App):
def on_fileselection_dialog_confirmPath(self, widget, filelist): def on_fileselection_dialog_confirmPath(self, widget, filelist):
# a list() of filenames and folders is returned # a list() of filenames and folders is returned
self.WeekPath.set_value(';'.join(filelist)) self.WeekPath.set_value(';'.join(filelist))
"""
def open_fileselection_dialogPath1(self, widget): def open_fileselection_dialogPath1(self, widget):
self.fileselectionDialog = gui.FileSelectionDialog('File Selection Dialog', 'Select files and folders', self.fileselectionDialog = gui.FileSelectionDialog('File Selection Dialog', 'Select files and folders',

@ -1,10 +1,9 @@
import json import json
import datetime import datetime
import requests import requests
from dateutil.easter import * from dateutil.easter import easter
from plexapi.server import PlexServer from plexapi.server import PlexServer
import os import os
from configparser import *
def update(): def update():

Loading…
Cancel
Save