Skip to content

Commit

Permalink
Merge pull request #228 from felipeucelli/improvements
Browse files Browse the repository at this point in the history
[Search] fix key error inlinePlayerData
  • Loading branch information
JuanBindez authored Sep 15, 2024
2 parents bc465c1 + 6c7d5f7 commit f0918f3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/bash

git add .
git commit -m 'rc2'
git push -u origin dev
git tag v6.16-rc2
git commit -m 'Pytubefix 6.16.1 (#218 #223)'
git push -u origin main
git tag v6.16.1
git push --tag
make clean
make upload
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "pytubefix"
version = "6.16-rc2"
version = "6.16.1"
authors = [
{ name="Juan Bindez", email="[email protected]" },
]
Expand Down
4 changes: 2 additions & 2 deletions pytubefix/contrib/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,8 @@ def fetch_and_parse(self, continuation=None):
if 'reelItemRenderer' in items:
video_id = items['reelItemRenderer']['videoId']
else:
video_id = items['shortsLockupViewModel']['inlinePlayerData']['onVisible'][
'innertubeCommand']['watchEndpoint']['videoId']
video_id = items['shortsLockupViewModel']['onTap']['innertubeCommand'][
'reelWatchEndpoint']['videoId']

shorts.append(YouTube(f"https://www.youtube.com/watch?v={video_id}",
use_oauth=self.use_oauth,
Expand Down
2 changes: 1 addition & 1 deletion pytubefix/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "6.16-rc2"
__version__ = "6.16.1"

if __name__ == "__main__":
print(__version__)

0 comments on commit f0918f3

Please sign in to comment.