mirror of
https://github.com/PhoenixTwoFive/karaoqueue.git
synced 2025-07-05 09:41:42 +02:00
Move database and config to /data
This commit is contained in:
@ -3,7 +3,13 @@ from bs4 import BeautifulSoup
|
||||
import json
|
||||
import os
|
||||
|
||||
config_file = "config.json"
|
||||
data_directory = "data"
|
||||
config_file = data_directory+"/config.json"
|
||||
|
||||
def create_data_directory():
|
||||
if not os.path.exists(data_directory):
|
||||
os.makedirs(data_directory)
|
||||
|
||||
|
||||
def get_catalog_url():
|
||||
r = requests.get('https://www.karafun.de/karaoke-song-list.html')
|
||||
|
Reference in New Issue
Block a user