Compare commits
5 Commits
v0.1.2
...
a66e3ab455
| Author | SHA1 | Date | |
|---|---|---|---|
| a66e3ab455 | |||
| 7e221f74bd | |||
| 14d680da18 | |||
| d23e713d7a | |||
| 550e9c0ac8 |
@@ -1,8 +1,9 @@
|
|||||||
name: Build and Upload Python Package
|
name: Build and Upload Python Package
|
||||||
on:
|
on:
|
||||||
release:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
types: [closed]
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
name = jimaku-dl
|
name = jimaku-dl
|
||||||
version = 0.1.2
|
version = 0.1.3
|
||||||
author = InsaneDesperado
|
author = InsaneDesperado
|
||||||
author_email = insane@lmaoxd.lol
|
author_email = insane@lmaoxd.lol
|
||||||
description = Download japanese anime subtitles from Jimaku
|
description = Download japanese anime subtitles from Jimaku
|
||||||
|
|||||||
@@ -766,8 +766,7 @@ class JimakuDownloader:
|
|||||||
if play and not is_directory:
|
if play and not is_directory:
|
||||||
self.logger.info("Launching MPV with the subtitle files...")
|
self.logger.info("Launching MPV with the subtitle files...")
|
||||||
mpv_cmd = ["mpv", media_file]
|
mpv_cmd = ["mpv", media_file]
|
||||||
for sub in downloaded_files:
|
mpv_cmd.extend([f"--sub-file={filename}"])
|
||||||
mpv_cmd.extend(["--sub-file", sub])
|
|
||||||
try:
|
try:
|
||||||
self.logger.debug(f"Running command: {' '.join(mpv_cmd)}")
|
self.logger.debug(f"Running command: {' '.join(mpv_cmd)}")
|
||||||
subprocess_run(mpv_cmd)
|
subprocess_run(mpv_cmd)
|
||||||
|
|||||||
Reference in New Issue
Block a user