Skip to content

Commit f41de72

Browse files
authored
Merge pull request #11 from michaelb/dev
fix dependencies issues
2 parents 63358e0 + 5801205 commit f41de72

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

autoytdl/AYTDL.py

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,22 @@
11
import sys
22
import os
33
import re
4-
import tempfile
54
import shutil
5+
import tempfile
66
import subprocess
7-
from pathlib import Path
8-
from datetime import date
7+
try:
8+
from pathlib import Path
9+
from datetime import date
10+
import music_tag
11+
import mutagen
12+
import argparse
13+
except Exception:
14+
print("Fetching auto-ytdl pip dependencies. (install as --user)")
15+
os.system(
16+
"pip install --user pathlib datetime music_tag mutagen argparse")
17+
print("Done, please re-launch auto-ytdl")
18+
sys.exit(0)
19+
920
from autoytdl.config import Config
1021
from autoytdl.arguments import get_args
1122
from autoytdl.metadata_manager import should_add

0 commit comments

Comments
 (0)