Fix some typos

master
Taeyeon Mori 6 years ago
parent e30f581817
commit 60db0003aa
  1. 2
      bin/aur.sh
  2. 1
      dotfiles/makepkg.conf
  3. 2
      lib/python/xconv/app.py
  4. 2
      lib/python/xconv/cmdline.py
  5. 42
      lib/python/xconv/profiles/getfonts.py

@ -518,7 +518,7 @@ if $ADD_UPDATES; then
updates=(${updates:|ignore}) updates=(${updates:|ignore})
fi fi
packages+=("${packages[@]}") packages+=("${updates[@]}")
fi fi
packages_from_filter() { packages_from_filter() {

@ -17,6 +17,7 @@ CXXFLAGS="`fix_march $CXXFLAGS`"
LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS"
MAKEFLAGS="-j${MAKEPKG_MAKETHREADS:-`nproc`}" MAKEFLAGS="-j${MAKEPKG_MAKETHREADS:-`nproc`}"
COMPRESSXZ=(xz -T 0 -c -z -)
# Store stuff # Store stuff
source "$DOTFILES/etc/aur.conf" source "$DOTFILES/etc/aur.conf"

@ -220,7 +220,7 @@ def main(argv):
for output in [o for o in task.outputs if exists(o.filename)]: for output in [o for o in task.outputs if exists(o.filename)]:
print("\033[33m Skipping existing '%s' (--update)\033[0m\033[K" % output.name) print("\033[33m Skipping existing '%s' (--update)\033[0m\033[K" % output.name)
task.outputs.remove(output) task.outputs.remove(output)
if not tasks.outputs: if not task.outputs:
print("\033[33m Skipping task '%s' because no output files are left\033[0m\033[K" % task_name(task)) print("\033[33m Skipping task '%s' because no output files are left\033[0m\033[K" % task_name(task))
tasks.remove(task) tasks.remove(task)

@ -123,7 +123,7 @@ def parse_args(argv):
# Available Options # Available Options
parser.add_argument("-v", "--verbose", help="Enable verbose output", action="store_true") parser.add_argument("-v", "--verbose", help="Enable verbose output", action="store_true")
parser.add_argument("-q", "--quiet", help="Be less verbose", action="store_true") parser.add_argument("-q", "--quiet", help="Be less verbose", action="store_true")
parser.add_argument("-j", "--concurrent", help="Run ffmpeg concurrently using at most N instances [%(default)s]", metavar="N", default=cpu_count()) parser.add_argument("-j", "--concurrent", help="Run ffmpeg concurrently using at most N instances [%(default)s]", metavar="N", type=int, default=cpu_count())
profile = parser.add_argument_group("Profile") profile = parser.add_argument_group("Profile")
profile.add_argument("-l", "--list-profiles", help="List profiles and quit", action=ProfilesAction) profile.add_argument("-l", "--list-profiles", help="List profiles and quit", action=ProfilesAction)
profile.add_argument("-i", "--profile-info", help="Give info about a profile and quit", metavar="PROFILE", action=ProfileInfoAction) profile.add_argument("-i", "--profile-info", help="Give info about a profile and quit", metavar="PROFILE", action=ProfileInfoAction)

@ -0,0 +1,42 @@
#!/usr/bin/env python3
"""
xconv ffmpeg wrapper based on AdvancedAV
-----------------------------------------------------------
AdvancedAV helps with constructing FFmpeg commandline arguments.
It can automatically parse input files with the help of FFmpeg's ffprobe tool (WiP)
and allows programatically mapping streams to output files and setting metadata on them.
-----------------------------------------------------------
Copyright (c) 2015-2017 Taeyeon Mori
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-----------------------------------------------------------
Extract subtitle streams
"""
from ..profile import *
@profile
@description("Extract (true type) fonts")
@features(no_single_output=True,
skip_existing_outputs=True)
def getfonts(task):
for stream in task.iter_attachment_streams():
if stream.codec in ("ttf", "otf"):
if stream.og_filename:
filename = stream.og_filename
else:
filename = "%s.%s.%s" % (stream.source.name, stream.pertype_index, stream.codec)
task.dump_attachment(stream, filename)
return True
Loading…
Cancel
Save