Reformat python scripts
This commit is contained in:
parent
2ebb59ad7f
commit
2def00c45c
15
encode.py
15
encode.py
|
@ -1,14 +1,15 @@
|
|||
#!/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 os
|
||||
import threading
|
||||
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
|
||||
|
||||
|
@ -42,7 +43,7 @@ def encode_episode(podcast, episode, format):
|
|||
|
||||
command = ["ffmpeg", "-y", "-loglevel", "error"]
|
||||
command.extend(["-i", infile])
|
||||
if not format in ["oga", "opus"]:
|
||||
if format not in ["oga", "opus"]:
|
||||
command.extend(["-i", episode["poster"]])
|
||||
command.extend(["-c:v", "copy"])
|
||||
command.extend(options)
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#!/usr/bin/env python3
|
||||
from glob import glob
|
||||
from html.parser import HTMLParser
|
||||
import json
|
||||
import os.path
|
||||
from glob import glob
|
||||
from html.parser import HTMLParser
|
||||
|
||||
import common
|
||||
|
||||
|
|
Loading…
Reference in a new issue