Beispiel #1
0
import os
import sys
import optparse
import subprocess
from user.settings import option
from app.system import ANKOA_SYSTEM
from app.skin.style import (banner, next)
from app.main.events import (ankoa_help, global_error, ankoa_success,
                             muxing_process, muxing_success, ffmpeg_success)
from app.main.inputs import (ask_next_encode, ask_print_ffmpeg, check_cmds,
                             ask_print_mkvmerge, ask_print_tools)
from app.modules.ffmpeg import *
from app.main.main import MKVMERGE
from make import ankoa_tools

(folder, thumb, tag, team, announce, tmdb_api_key, tag_thumb) = option()


def CHECK_COMMANDS_LINES(cmd, mkvmerge, tools):
    ask_cmds = check_cmds()
    if (ask_cmds == "y"):
        print_ffmpeg = ask_print_ffmpeg()
        if (print_ffmpeg == "y"):
            print cmd
        if (mkvmerge):
            print_mkvmerge = ask_print_mkvmerge()
            if (print_mkvmerge == "y"):
                print mkvmerge
        print_tools = ask_print_tools()
        if (print_tools == "y"):
            print tools
Beispiel #2
0
    The fact that you are presently reading this means that you have had
    knowledge of the CeCILL-C license and that you accept its terms.
"""

from __future__ import absolute_import
import re
import os
from django.utils.encoding import (smart_str, smart_unicode)
from app.main.param import (bad_chars, regex)
from user.settings import option
from app.main.inputs import *
from app.main.events import *

deleted = bad_chars()
(folder, thumb, tag, team, announce, tmdb_api_key, tag_thumb) = option()
(hb_regex, crf_regex, delay_regex, fp_regex, aq_regex, url_regex) = regex()


# Manual Subtitles Titles
def manual_title_subs():

    # Track 01 Title
    titlesub = ask_title_subs01()
    while not titlesub:
        bad_subs_title()
        titlesub = ask_title_subs01()

    # Track 02 Title
    titlesub2 = ask_title_subs02()
    while not titlesub2: