Compare commits
No commits in common. "e2330a15c4b7cbb8343a6bd37a8806d8b64156fb" and "288d21e489ee48ad93f93c04a6e6d8102045450a" have entirely different histories.
e2330a15c4
...
288d21e489
6 changed files with 17 additions and 21 deletions
|
@ -1,6 +0,0 @@
|
||||||
http://localhost:4010 {
|
|
||||||
file_server {
|
|
||||||
root ./frontend
|
|
||||||
}
|
|
||||||
reverse_proxy /ws 127.0.0.1:4009
|
|
||||||
}
|
|
20
Makefile
20
Makefile
|
@ -1,4 +1,4 @@
|
||||||
.PHONY: run run-backend run-frontend test
|
.PHONY: run test build frontend backend
|
||||||
|
|
||||||
run:
|
run:
|
||||||
# See backend/config.py for more fields
|
# See backend/config.py for more fields
|
||||||
|
@ -6,11 +6,15 @@ run:
|
||||||
COOKIES_DIR=cookies \
|
COOKIES_DIR=cookies \
|
||||||
python3 ./backend/main.py
|
python3 ./backend/main.py
|
||||||
|
|
||||||
run-backend: run
|
|
||||||
|
|
||||||
run-frontend:
|
|
||||||
@echo 'Only for development environment!'
|
|
||||||
caddy run
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
python3 -m unittest discover -vcs ./backend
|
@python3 -m unittest discover -vcs ./backend
|
||||||
|
|
||||||
|
build:
|
||||||
|
make frontend
|
||||||
|
make backend
|
||||||
|
|
||||||
|
frontend:
|
||||||
|
@cd frontend && echo 'Not implemented'
|
||||||
|
|
||||||
|
backend:
|
||||||
|
@cd backend && echo 'Not implemented'
|
||||||
|
|
|
@ -21,7 +21,7 @@ class Config:
|
||||||
)
|
)
|
||||||
|
|
||||||
# Proxy URL for yt_proxied downloader (can be used for geo-restricted content)
|
# Proxy URL for yt_proxied downloader (can be used for geo-restricted content)
|
||||||
self.yt_proxy = os.getenv('YT_PROXY') or None
|
self.yt_proxy = os.getenv('YT_PROXY') or 'http://127.0.0.1:1080'
|
||||||
|
|
||||||
self.save_lyrics = _parse_bool(os.getenv('SAVE_LYRICS'), True)
|
self.save_lyrics = _parse_bool(os.getenv('SAVE_LYRICS'), True)
|
||||||
self.save_cover = _parse_bool(os.getenv('SAVE_COVER'), True)
|
self.save_cover = _parse_bool(os.getenv('SAVE_COVER'), True)
|
||||||
|
|
|
@ -69,7 +69,7 @@ class TestPostProcessorsOnFakeData(TestCase):
|
||||||
if ret != 0:
|
if ret != 0:
|
||||||
raise RuntimeError(f'FFmpeg returned {ret} exit code')
|
raise RuntimeError(f'FFmpeg returned {ret} exit code')
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
self.skipTest(f'Error while writing empty MP3: {err!r}')
|
self.skipTest(f'Error while writing empty MP3: {err:r}')
|
||||||
|
|
||||||
id3pp.ID3TagsPP().run(INFO_AFTER)
|
id3pp.ID3TagsPP().run(INFO_AFTER)
|
||||||
|
|
||||||
|
|
|
@ -22,9 +22,7 @@ class _CreateYDL:
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def yt_proxied() -> YoutubeDL:
|
def yt_proxied() -> YoutubeDL:
|
||||||
ydl = _CreateYDL.youtube()
|
ydl = _CreateYDL.youtube()
|
||||||
proxy = config.get().yt_proxy
|
ydl.params['proxy'] = config.get().yt_proxy
|
||||||
if proxy is not None:
|
|
||||||
ydl.params['proxy'] = proxy
|
|
||||||
return ydl
|
return ydl
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
websockets==12.0
|
websockets==12.0
|
||||||
yt-dlp==2024.5.27
|
yt-dlp==2024.4.9
|
||||||
mutagen==1.47.0
|
mutagen==1.47.0
|
||||||
urllib3==2.2.1
|
urllib3==2.2.1
|
||||||
lxml==5.2.2
|
lxml==5.2.1
|
||||||
|
|
Loading…
Add table
Reference in a new issue