Update download.py
This commit is contained in:
parent
ec46022fd8
commit
f8a51c23e4
@ -2,6 +2,9 @@ import os, yt_dlp, json, requests, re, logging
|
|||||||
from bs4 import BeautifulSoup
|
from bs4 import BeautifulSoup
|
||||||
from urllib.parse import urlsplit
|
from urllib.parse import urlsplit
|
||||||
|
|
||||||
|
# Setup logging
|
||||||
|
logging.basicConfig(filename='/data/logs/syllabus.log', level=logging.INFO,
|
||||||
|
format='%(asctime)s - %(levelname)s - %(message)s')
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
# Define the hook function
|
# Define the hook function
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user