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

Commit

Permalink
Enable downloading HTTPS links
Browse files Browse the repository at this point in the history
  • Loading branch information
iamkroot committed Apr 18, 2020
1 parent e306dd5 commit fbe671a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,3 @@ The range pattern follows the format of Python Slices.

You can also specify multiple ranges using commas.
`12, 4:6, 15:, :2` will download lectures 1, 4, 5, 12, 15, 16, 17, ... until the latest one.

## Authors
* [Krut Patel](https://github.com/iamkroot)
5 changes: 2 additions & 3 deletions downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from http.server import HTTPServer, SimpleHTTPRequestHandler
from multiprocessing.dummy import Process
from pathlib import Path
from urllib.parse import quote, parse_qsl, urlparse
from urllib.parse import quote

import requests
from utils import find_startswith, sp_args
Expand Down Expand Up @@ -114,7 +114,6 @@ def extract_enc_keys(angle_pls: list, token):
if not line.startswith("#EXT-X-KEY"):
continue
key_url = PAT.search(line)["key_url"]
key_info = dict(parse_qsl(urlparse(key_url).query))
orig_key = sess.get(key_url).content
real_key = orig_key[::-1][:16]
path_uri = DirServer.get_url(real_key, ".key", "wb")
Expand All @@ -127,7 +126,7 @@ def add_inputs(token, cmd, angle_playlists, angle):
"-allowed_extensions",
"key,m3u8,ts",
"-protocol_whitelist",
"file,http,tcp,tls,crypto",
"file,http,https,tcp,tls,crypto",
)
if angle > len(angle_playlists):
print(
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "ilc-scraper"
version = "0.6.3"
version = "0.6.4"
description = "A scraper for Impartus Lecture Capture videos for BITS Hyderabad"
authors = ["iamkroot <kroot.patel@gmail.com>"]
readme = "README.md"
Expand Down

0 comments on commit fbe671a

Please sign in to comment.