Skip to content

Commit 5aadc7a

Browse files
committed
Develop * 2
1 parent 0517831 commit 5aadc7a

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -270,12 +270,11 @@ You can change some behaviors by tweaking the configuration file. The configurat
270270
- 360p (640x360)
271271

272272

273-
#### Output fomat Options
274-
- `extension`: Choose video format:
275-
* `"mp4"`: Output as MP4 file
276-
* `"mkv"`: Output as MKV file
273+
#### Output format Options
274+
Final video will be saved with the selected extension. For each format, specific subtitles parameters need to be set in the `M3U8_CONVERSION` section.
277275

278-
Final video will be saved with the selected extension. For each format, specific subtitles parameters need to be set in the M3U8_CONVERSION section.
276+
> Note: if you want **ASS subtitles**, use `extension: "mkv"` and set `param_subtitles` to `["-c:s","ass"]`
277+
> (or `["-c:s","copy"]` if the input subtitles are already ASS and you just want to mux them).
279278
280279
MP4 example:
281280
```json
@@ -290,7 +289,7 @@ MP4 example:
290289
}
291290
```
292291

293-
MKV example:
292+
MKV example (WebVTT):
294293
```json
295294
{
296295
"M3U8_CONVERSION": {

StreamingCommunity/Api/Service/crunchyroll/util/ScrapeSerie.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,7 @@ def _get_episode_id_for_preferred_language(self, base_episode_id: str) -> str:
198198
fallback_guid = versions[0].get("guid")
199199
fallback_locale = versions[0].get("audio_locale")
200200
if fallback_guid:
201-
print(f"[DEBUG] Preferred locale {preferred_locale} not found, using fallback: {fallback_locale} -> {fallback_guid}")
202-
logging.info(f"Preferred locale {preferred_locale} not found, using fallback: {fallback_locale}")
201+
print(f"Preferred locale {preferred_locale} not found, using fallback: {fallback_locale} -> {fallback_guid}")
203202
return fallback_guid
204203

205204
except Exception as e:

config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"DEFAULT": {
33
"debug": false,
44
"show_message": true,
5-
"fetch_domain_online": false
5+
"fetch_domain_online": true
66
},
77
"OUT_FOLDER": {
88
"root_path": "Video",
@@ -33,7 +33,7 @@
3333
"use_gpu": false,
3434
"param_video": ["-c:v", "libx265", "-crf", "28", "-preset", "medium"],
3535
"param_audio": ["-c:a", "libopus", "-b:a", "128k"],
36-
"param_subtitles": ["-c:s", "webvtt"],
36+
"param_subtitles": ["-c:s", "copy"],
3737
"param_final": ["-c", "copy"],
3838
"force_resolution": "Best",
3939
"extension": "mkv"

0 commit comments

Comments
 (0)