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

Commit

Permalink
👌 v1.2.6 Fixed an error in playlist search!
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmercerind committed Jul 11, 2020
1 parent 16f9bb4 commit 4d09bd4
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 18 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="youtube-search-python",
version="1.2.4",
version="1.2.6",
author="Hitesh Kumar Saini",
author_email="[email protected]",
description="Search for YouTube videos WITHOUT YouTube Data API v3",
Expand Down
2 changes: 1 addition & 1 deletion tests/upload.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://pypi.org/project/youtube-search-python/1.2.4
https://pypi.org/project/youtube-search-python/1.2.6
2 changes: 0 additions & 2 deletions youtubesearchpython/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#########v1.2.4#########

from youtubesearchpython.videos__search import SearchVideos
from youtubesearchpython.playlist__search import SearchPlaylists

Expand Down
1 change: 0 additions & 1 deletion youtubesearchpython/__requesthandler.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#########v1.2.4#########
import urllib.request
from urllib.request import Request

Expand Down
1 change: 0 additions & 1 deletion youtubesearchpython/playlist__pagehandler.py

This file was deleted.

12 changes: 6 additions & 6 deletions youtubesearchpython/playlist__scripthandler.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#########v1.2.4#########


class scripthandler:

def scriptResponseHandler(self):
Expand All @@ -27,10 +24,13 @@ def scriptResponseHandler(self):

if self.pageSource[index][-10:] == 'playlistId':
if self.pageSource[index+1].split('"')[0] not in self.ids:
self.ids+=[self.pageSource[index+1].split('"')[0]]
self.links+=["https://www.youtube.com/playlist?list=" + self.pageSource[index+1].split('"')[0]]
if self.pageSource[index+1].split('"')[0] == "WL":
pass
else:
self.ids+=[self.pageSource[index+1].split('"')[0]]
self.links+=["https://www.youtube.com/playlist?list=" + self.pageSource[index+1].split('"')[0]]

#########Setting Playlist ID and link.#########
#########Setting Playlist Title.#########

if self.pageSource[index][-20:] == '"title":{"simpleText' and self.pageSource[index+1][-3:] == 'url':
self.titles+=[self.pageSource[index+1].split('"},"')[0].replace("\\u0026", "&")]
Expand Down
1 change: 0 additions & 1 deletion youtubesearchpython/playlist__search.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#########v1.2.4#########
import urllib.request
import json

Expand Down
1 change: 0 additions & 1 deletion youtubesearchpython/videos__pagehandler.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#########v1.2.4#########
import html


Expand Down
3 changes: 0 additions & 3 deletions youtubesearchpython/videos__scripthandler.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#########v1.2.4#########


class scripthandler:

def scriptResponseHandler(self):
Expand Down
1 change: 0 additions & 1 deletion youtubesearchpython/videos__search.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#########v1.2.4#########
import urllib.request
import json

Expand Down

0 comments on commit 4d09bd4

Please sign in to comment.