Skip to content

Commit 3577038

Browse files
Fix GET_ONLY_LINK (#283)
* fixed GET_ONLY_LINK in HLS_Downloader * added IDEs to .gitignore
1 parent 6d13b18 commit 3577038

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ ENV/
4141
env.bak/
4242
venv.bak/
4343

44+
# IDEs
45+
.idea
46+
.vscode
47+
4448
# Other
4549
Video
4650
note.txt

StreamingCommunity/Lib/Downloader/HLS/downloader.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -438,13 +438,13 @@ def start(self) -> Dict[str, Any]:
438438
return response
439439

440440
if GET_ONLY_LINK:
441-
console.print(f"URL: {self.m3u8_url}[/bold red]")
441+
console.print(f"URL: [bold red]{self.m3u8_url}[/bold red]")
442442
return {
443443
'path': None,
444444
'url': self.m3u8_url,
445445
'is_master': getattr(self.m3u8_manager, 'is_master', None),
446446
'msg': None,
447-
'error': error_msg,
447+
'error': None,
448448
'stopped': True
449449
}
450450

0 commit comments

Comments
 (0)