Skip to content
This repository was archived by the owner on Nov 9, 2022. It is now read-only.

Commit fbe671a

Browse files
committed
Enable downloading HTTPS links
1 parent e306dd5 commit fbe671a

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,3 @@ The range pattern follows the format of Python Slices.
6363

6464
You can also specify multiple ranges using commas.
6565
`12, 4:6, 15:, :2` will download lectures 1, 4, 5, 12, 15, 16, 17, ... until the latest one.
66-
67-
## Authors
68-
* [Krut Patel](https://github.com/iamkroot)

downloader.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from http.server import HTTPServer, SimpleHTTPRequestHandler
66
from multiprocessing.dummy import Process
77
from pathlib import Path
8-
from urllib.parse import quote, parse_qsl, urlparse
8+
from urllib.parse import quote
99

1010
import requests
1111
from utils import find_startswith, sp_args
@@ -114,7 +114,6 @@ def extract_enc_keys(angle_pls: list, token):
114114
if not line.startswith("#EXT-X-KEY"):
115115
continue
116116
key_url = PAT.search(line)["key_url"]
117-
key_info = dict(parse_qsl(urlparse(key_url).query))
118117
orig_key = sess.get(key_url).content
119118
real_key = orig_key[::-1][:16]
120119
path_uri = DirServer.get_url(real_key, ".key", "wb")
@@ -127,7 +126,7 @@ def add_inputs(token, cmd, angle_playlists, angle):
127126
"-allowed_extensions",
128127
"key,m3u8,ts",
129128
"-protocol_whitelist",
130-
"file,http,tcp,tls,crypto",
129+
"file,http,https,tcp,tls,crypto",
131130
)
132131
if angle > len(angle_playlists):
133132
print(

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "ilc-scraper"
3-
version = "0.6.3"
3+
version = "0.6.4"
44
description = "A scraper for Impartus Lecture Capture videos for BITS Hyderabad"
55
authors = ["iamkroot <kroot.patel@gmail.com>"]
66
readme = "README.md"

0 commit comments

Comments
 (0)