Reformat python scripts
This commit is contained in:
parent
2ebb59ad7f
commit
2def00c45c
|
@ -1,5 +1,4 @@
|
||||||
from subprocess import run
|
from subprocess import run
|
||||||
import csv
|
|
||||||
import json
|
import json
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
|
15
encode.py
15
encode.py
|
@ -1,14 +1,15 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
from datetime import datetime
|
|
||||||
from mutagen.flac import Picture
|
|
||||||
from mutagen.oggopus import OggOpus
|
|
||||||
from mutagen.oggvorbis import OggVorbis
|
|
||||||
from subprocess import run
|
|
||||||
from urllib.parse import urlparse
|
|
||||||
import base64
|
import base64
|
||||||
import os
|
import os
|
||||||
import threading
|
import threading
|
||||||
import xml.etree.ElementTree as ET
|
import xml.etree.ElementTree as ET
|
||||||
|
from datetime import datetime
|
||||||
|
from subprocess import run
|
||||||
|
from urllib.parse import urlparse
|
||||||
|
|
||||||
|
from mutagen.flac import Picture
|
||||||
|
from mutagen.oggopus import OggOpus
|
||||||
|
from mutagen.oggvorbis import OggVorbis
|
||||||
|
|
||||||
import common
|
import common
|
||||||
|
|
||||||
|
@ -42,7 +43,7 @@ def encode_episode(podcast, episode, format):
|
||||||
|
|
||||||
command = ["ffmpeg", "-y", "-loglevel", "error"]
|
command = ["ffmpeg", "-y", "-loglevel", "error"]
|
||||||
command.extend(["-i", infile])
|
command.extend(["-i", infile])
|
||||||
if not format in ["oga", "opus"]:
|
if format not in ["oga", "opus"]:
|
||||||
command.extend(["-i", episode["poster"]])
|
command.extend(["-i", episode["poster"]])
|
||||||
command.extend(["-c:v", "copy"])
|
command.extend(["-c:v", "copy"])
|
||||||
command.extend(options)
|
command.extend(options)
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
from glob import glob
|
|
||||||
from html.parser import HTMLParser
|
|
||||||
import json
|
import json
|
||||||
import os.path
|
import os.path
|
||||||
|
from glob import glob
|
||||||
|
from html.parser import HTMLParser
|
||||||
|
|
||||||
import common
|
import common
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue