Compare commits
No commits in common. "3984261168a882e47f21fc37810eabc6b4c2fbbe" and "f4a2b4f88e45a1270f088ff82b0fce5560d1b18e" have entirely different histories.
3984261168
...
f4a2b4f88e
0
autoradio/__init__.py
Normal file
0
autoradio/__init__.py
Normal file
@ -67,7 +67,6 @@ def main():
|
|||||||
help="Config file",
|
help="Config file",
|
||||||
)
|
)
|
||||||
args = ap.parse_args()
|
args = ap.parse_args()
|
||||||
print(f"Config from {args.config}")
|
|
||||||
with open(args.config, 'r') as cfh:
|
with open(args.config, 'r') as cfh:
|
||||||
cf = json.load(cfh)
|
cf = json.load(cfh)
|
||||||
m = int(cf.get("max", "5"))
|
m = int(cf.get("max", "5"))
|
||||||
@ -78,5 +77,3 @@ def main():
|
|||||||
print(f"content = {url}")
|
print(f"content = {url}")
|
||||||
download_audio(url, config['dir'])
|
download_audio(url, config['dir'])
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
main()
|
|
@ -8,6 +8,3 @@ dependencies = [
|
|||||||
"feedparser>=6.0.11",
|
"feedparser>=6.0.11",
|
||||||
"pycurl>=7.45.6",
|
"pycurl>=7.45.6",
|
||||||
]
|
]
|
||||||
|
|
||||||
[project.scripts]
|
|
||||||
autoradio = "autoradio.autoradio:main"
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user