Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Commit

Permalink
encdetect in synchro, imports cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Michał Szymaniak committed Jul 10, 2019
1 parent d467867 commit 7ebe137
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
4 changes: 3 additions & 1 deletion subsync/cmdargs.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import argparse
from subsync.synchro import SyncTask, SyncTaskList, SubFile, RefFile, OutputFile, ChannelsMap
import re


Expand All @@ -21,6 +20,8 @@ def parseSettingsArgs(args):


def parseSyncArgs(args):
from subsync.synchro import SyncTask, SubFile, RefFile, OutputFile, ChannelsMap

sub = SubFile(path=args.sub)
if args.sub_stream is not None:
sub.select(args.sub_stream - 1)
Expand All @@ -39,6 +40,7 @@ def parseSyncArgs(args):


def parseBatchArgs(args):
from subsync.synchro import SyncTaskList
return SyncTaskList.load(args.batch)


Expand Down
13 changes: 5 additions & 8 deletions subsync/synchro/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@
from subsync.synchro.output import OutputFile
from subsync.synchro.channels import ChannelsMap

Synchronizer = Synchronizer
SyncTask = SyncTask
SyncTaskList = SyncTaskList
InputFile = InputFile
SubFile = SubFile
RefFile = RefFile
OutputFile = OutputFile
ChannelsMap = ChannelsMap
__all__ = [
'Synchronizer',
'SyncTask', 'SyncTaskList',
'InputFile', 'SubFile', 'RefFile', 'OutputFile',
'ChannelsMap' ]
File renamed without changes.
2 changes: 1 addition & 1 deletion subsync/synchro/synchronizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from subsync import subtitle
from subsync.settings import settings
from subsync.synchro import dictionary
from subsync import encdetect
from subsync.synchro import encdetect
import threading
import multiprocessing
from collections import namedtuple
Expand Down

0 comments on commit 7ebe137

Please sign in to comment.