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

Commit 5be88d0

Browse files
committed
Default to http for course_url
1 parent e434e09 commit 5be88d0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

ilc_scrape.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@ def validate_url(url):
182182

183183
def get_course_url(args, course_urls):
184184
course_lectures_url = course_urls.get(getattr(args, "name", None), args.course_url)
185+
if not course_lectures_url.startswith("http"):
186+
course_lectures_url = "http://" + course_lectures_url
185187
split = urlsplit(course_lectures_url)
186188
global IMP_BASE_URL
187189
# support for different domains

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.4.0"
3+
version = "0.4.1"
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)