Skip to content

Commit 1d86881

Browse files
committed
add no-dual arg
fixes Audionut#605
1 parent fae31b9 commit 1d86881

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/args.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ def parse(self, args, meta):
105105
parser.add_argument('--no-year', dest='no_year', action='store_true', required=False, help="Remove Year from title")
106106
parser.add_argument('--no-aka', dest='no_aka', action='store_true', required=False, help="Remove AKA from title")
107107
parser.add_argument('--no-dub', dest='no_dub', action='store_true', required=False, help="Remove Dubbed from title")
108+
parser.add_argument('--no-dual', dest='no_dual', action='store_true', required=False, help="Remove Dual-Audio from title")
108109
parser.add_argument('--no-tag', dest='no_tag', action='store_true', required=False, help="Remove Group Tag from title")
109110
parser.add_argument('--no-edition', dest='no_edition', action='store_true', required=False, help="Remove Edition from title")
110111
parser.add_argument('--dual-audio', dest='dual_audio', action='store_true', required=False, help="Add Dual-Audio to the title")

src/audio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ async def get_audio_v2(mi, meta, bdinfo):
197197
meta['bloated'] = True
198198
time.sleep(5)
199199

200-
if (eng and (orig or non_en_non_commentary)) or (orig and non_en_non_commentary) and len(audio_tracks) > 1:
200+
if (eng and (orig or non_en_non_commentary)) or (orig and non_en_non_commentary) and len(audio_tracks) > 1 and not meta.get('no_dual', False):
201201
dual = "Dual-Audio"
202202
elif eng and not orig and orig_lang not in ['zxx', 'xx', 'en', None] and not meta.get('no_dub', False):
203203
dual = "Dubbed"

0 commit comments

Comments
 (0)