Reformat python scripts

This commit is contained in:
Simon Bruder 2021-11-30 19:57:59 +01:00
parent 2ebb59ad7f
commit 2def00c45c
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC
3 changed files with 10 additions and 10 deletions

View file

@ -1,5 +1,4 @@
from subprocess import run
import csv
import json
import time

View file

@ -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)

View file

@ -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