Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v7.0.3+beta.2 #564

Merged
merged 22 commits into from
Jan 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
acd6e53
Fix incorrectly resetting subscription items
MoojMidge Jan 16, 2024
fbae2cd
Improve robustness of strptime pre-formatting
MoojMidge Jan 16, 2024
64ce85c
Fix incorrect logic when re-raising request exceptions
MoojMidge Jan 17, 2024
a1e4879
Fix incorrect logged in status when access tokens are revoked
MoojMidge Jan 17, 2024
6c15a81
Set default request exception hook parameters for Youtube API requests
MoojMidge Jan 17, 2024
b683cee
Disable using video channel name as studio
MoojMidge Jan 18, 2024
1b19eb5
Update empty v3 response log message
MoojMidge Jan 18, 2024
fa323fb
Fix hiding directory items as short videos
MoojMidge Jan 18, 2024
0ceb27e
Child classes properly inherit from YouTubeRequestClient
MoojMidge Jan 19, 2024
85c5b04
Remove reference to view manager
MoojMidge Jan 19, 2024
d5e810e
Prevent log leaks
MoojMidge Jan 21, 2024
1ce49f0
Remove support for deprecated plugin url actions
MoojMidge Jan 21, 2024
fecc804
Use simple script entry point
MoojMidge Jan 21, 2024
033a874
Create per user function and data caches
MoojMidge Jan 23, 2024
affd3d0
Cache updates to fix #558
MoojMidge Jan 23, 2024
14603bd
Misc tidy ups
MoojMidge Jan 24, 2024
99594f7
Update workflows, changelog and remove news from addon.xml
MoojMidge Jan 25, 2024
8b1d59b
Version bump - v7.0.3+beta.2
MoojMidge Jan 25, 2024
432b6c9
Update addon.xml and workflows to pass addon-validations
MoojMidge Jan 25, 2024
8c22e40
Don't use label formatting for category labels
MoojMidge Jan 25, 2024
be0310e
Fix Context argv override uri creation
MoojMidge Jan 27, 2024
c9144f8
Allow category label to be inherited
MoojMidge Jan 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 19 additions & 10 deletions .github/workflows/make-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,12 @@ jobs:
- name: Get Changelog
id: changelog
run: |
readarray -t changes < <(xmlstarlet sel -t -v '//news' -n addon.xml)
readarray -t changes < <(awk '/^## /{rel_num++} {if(rel_num==2){exit} if(rel_num==1){print}}' changelog.txt)
echo "body<<${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_OUTPUT
for change in "${changes[@]}"; do
echo "${change}" >> $GITHUB_OUTPUT
done
news=$(printf '%s\n' "${changes[@]}" | sed -E 's/ ?#[[:digit:]]+[., ]?//;s/\r//')
echo "${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_OUTPUT
working-directory: ${{ github.event.repository.name }}

Expand All @@ -54,6 +55,8 @@ jobs:
mv .git ..
rm -rf .??*
rm *.md
news=$(awk '/^## /{rel_num++} {if(rel_num==2){exit} if(rel_num==1){print}}' changelog.txt | sed -E 's/ ?#[[:digit:]]+[., ]?//;s/\r//')
xmlstarlet ed -L -P -s '/addon/extension[@point="xbmc.addon.metadata"]' -t elem -n news -v "${news:0:1500}" addon.xml
version=$(xmlstarlet sel -t -v 'string(/addon/@version)' addon.xml)
filename=${{ github.event.repository.name }}-${version}.zip
cd ..
Expand All @@ -75,8 +78,10 @@ jobs:
mv .git ..
rm -rf .??*
rm *.md
news=$(awk '/^## /{rel_num++} {if(rel_num==2){exit} if(rel_num==1){print}}' changelog.txt | sed -E 's/ ?#[[:digit:]]+[., ]?//;s/\r//')
xmlstarlet ed -L -P -s '/addon/extension[@point="xbmc.addon.metadata"]' -t elem -n news -v "${news:0:1500}" addon.xml
version=$(xmlstarlet sel -t -v 'string(/addon/@version)' addon.xml)
xmlstarlet ed -L -u '/addon/@version' -v "${version}+unofficial.1" addon.xml
xmlstarlet ed -L -P -u '/addon/@version' -v "${version}+unofficial.1" addon.xml
filename=${{ github.event.repository.name }}-${version}.unofficial.1.zip
cd ..
zip -r $filename ${{ github.event.repository.name }}
Expand All @@ -93,11 +98,13 @@ jobs:
mv .git ..
rm -rf .??*
rm *.md
news=$(awk '/^## /{rel_num++} {if(rel_num==2){exit} if(rel_num==1){print}}' changelog.txt | sed -E 's/ ?#[[:digit:]]+[., ]?//;s/\r//')
xmlstarlet ed -L -P -s '/addon/extension[@point="xbmc.addon.metadata"]' -t elem -n news -v "${news:0:1500}" addon.xml
version=$(xmlstarlet sel -t -v 'string(/addon/@version)' addon.xml)
xmlstarlet ed -L -u '/addon/@version' -v "${version}+matrix.1" addon.xml
xmlstarlet ed -L -u '/addon/requires/import[@addon="xbmc.python"]/@version' -v '3.0.0' addon.xml
xmlstarlet ed -L -u '/addon/requires/import[@addon="inputstream.adaptive"]/@version' -v '19.0.0' addon.xml
xmlstarlet ed -L -d '/addon/requires/import[@addon="script.module.infotagger"]' addon.xml
xmlstarlet ed -L -P -u '/addon/@version' -v "${version}+matrix.1" addon.xml
xmlstarlet ed -L -P -u '/addon/requires/import[@addon="xbmc.python"]/@version' -v '3.0.0' addon.xml
xmlstarlet ed -L -P -u '/addon/requires/import[@addon="inputstream.adaptive"]/@version' -v '19.0.0' addon.xml
xmlstarlet ed -L -P -d '/addon/requires/import[@addon="script.module.infotagger"]' addon.xml
filename=${{ github.event.repository.name }}-${version}.matrix.1.zip
cd ..
zip -r $filename ${{ github.event.repository.name }}
Expand All @@ -118,11 +125,13 @@ jobs:
mv .git ..
rm -rf .??*
rm *.md
news=$(awk '/^## /{rel_num++} {if(rel_num==2){exit} if(rel_num==1){print}}' changelog.txt | sed -E 's/ ?#[[:digit:]]+[., ]?//;s/\r//')
xmlstarlet ed -L -P -s '/addon/extension[@point="xbmc.addon.metadata"]' -t elem -n news -v "${news:0:1500}" addon.xml
version=$(xmlstarlet sel -t -v 'string(/addon/@version)' addon.xml)
xmlstarlet ed -L -u '/addon/@version' -v "${version}+matrix.unofficial.1" addon.xml
xmlstarlet ed -L -u '/addon/requires/import[@addon="xbmc.python"]/@version' -v '3.0.0' addon.xml
xmlstarlet ed -L -u '/addon/requires/import[@addon="inputstream.adaptive"]/@version' -v '19.0.0' addon.xml
xmlstarlet ed -L -d '/addon/requires/import[@addon="script.module.infotagger"]' addon.xml
xmlstarlet ed -L -P -u '/addon/@version' -v "${version}+matrix.unofficial.1" addon.xml
xmlstarlet ed -L -P -u '/addon/requires/import[@addon="xbmc.python"]/@version' -v '3.0.0' addon.xml
xmlstarlet ed -L -P -u '/addon/requires/import[@addon="inputstream.adaptive"]/@version' -v '19.0.0' addon.xml
xmlstarlet ed -L -P -d '/addon/requires/import[@addon="script.module.infotagger"]' addon.xml
filename=${{ github.event.repository.name }}-${version}.matrix.unofficial.1.zip
cd ..
zip -r $filename ${{ github.event.repository.name }}
Expand Down
18 changes: 14 additions & 4 deletions .github/workflows/submit-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ jobs:
rm *.md
git add .
git commit -m "Remove Unwanted Files"
news=$(awk '/^## /{rel_num++} {if(rel_num==2){exit} if(rel_num==1){print}}' changelog.txt | sed -E 's/ ?#[[:digit:]]+[., ]?//;s/\r//')
xmlstarlet ed -L -P -s '/addon/extension[@point="xbmc.addon.metadata"]' -t elem -n news -v "${news:0:1500}" addon.xml
git add .
git commit -m "Update news"
working-directory: ${{ github.event.repository.name }}

- name: Submit to Official Repository (Nexus)
Expand All @@ -74,11 +78,17 @@ jobs:
rm -rf .??*
mv ../.git .
rm *.md
git add .
git commit -m "Remove Unwanted Files"
news=$(awk '/^## /{rel_num++} {if(rel_num==2){exit} if(rel_num==1){print}}' changelog.txt | sed -E 's/ ?#[[:digit:]]+[., ]?//;s/\r//')
xmlstarlet ed -L -P -s '/addon/extension[@point="xbmc.addon.metadata"]' -t elem -n news -v "${news:0:1500}" addon.xml
git add .
git commit -m "Update news"
version=$(xmlstarlet sel -t -v 'string(/addon/@version)' addon.xml)
xmlstarlet ed -L -u '/addon/@version' -v "${version}+matrix.1" addon.xml
xmlstarlet ed -L -u '/addon/requires/import[@addon="xbmc.python"]/@version' -v '3.0.0' addon.xml
xmlstarlet ed -L -u '/addon/requires/import[@addon="inputstream.adaptive"]/@version' -v '19.0.0' addon.xml
xmlstarlet ed -L -d '/addon/requires/import[@addon="script.module.infotagger"]' addon.xml
xmlstarlet ed -L -P -u '/addon/@version' -v "${version}+matrix.1" addon.xml
xmlstarlet ed -L -P -u '/addon/requires/import[@addon="xbmc.python"]/@version' -v '3.0.0' addon.xml
xmlstarlet ed -L -P -u '/addon/requires/import[@addon="inputstream.adaptive"]/@version' -v '19.0.0' addon.xml
xmlstarlet ed -L -P -d '/addon/requires/import[@addon="script.module.infotagger"]' addon.xml
git add .
git commit -m "Kodi 19 Patch"
working-directory: ${{ github.event.repository.name }}
Expand Down
38 changes: 2 additions & 36 deletions addon.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.youtube" name="YouTube" version="7.0.3+beta.1" provider-name="anxdpanic, bromix">
<addon id="plugin.video.youtube" name="YouTube" version="7.0.3+beta.2" provider-name="anxdpanic, bromix">
<requires>
<import addon="xbmc.python" version="3.0.1"/>
<import addon="script.module.requests" version="2.12.4"/>
Expand All @@ -12,44 +12,10 @@
</extension>
<extension point="xbmc.service" library="resources/lib/service.py"/>
<extension point="xbmc.python.module" library="resources/lib/"/>
<extension point="xbmc.python.script" library="resources/lib/youtube_plugin/script.py">
<extension point="xbmc.python.script" library="resources/lib/script.py">
<provides>executable</provides>
</extension>
<extension point="xbmc.addon.metadata">
<news>
### New
- Add display of extra video information (premieres, views, comments, likes) #18, #464, #503
- Add support for Clips #450
- Add ability to combine playlists #480
- Add support for timestamps in links #502
- Add initial support for higher bitrate streams #505
- Add ability to limit video FPS at max resolution #539
- Add local Watch Later and History for use when not logged in or custom playlist not set
- Update main menu items:
- New Recommended videos (similar to YouTube home page, will use login if available)
- Old Recommended videos renamed to Related videos (requires local/remote history enabled)
- Popular right now renamed to Trending

### Changed
- Local history made optional and enabled by default
- Existing user data will be lost due to changes in data format:
- Search, local history, and local watch later is stored per user
- Function and data cache will be wiped (will also become per user in future)
- Disable OPUS audio by default #537

### Fixed
- Fix sharing links #115, #250, #538
- Fix date and sorting issues #411, #425, #434
- Fix issue with switching between H264/AV1 streams #532
- Fix prompt for subtitles #534
- Fix issues with corrupt user data #536
- Fix issues with live streams #530, #540
- Fix issues with loading large playlists #545
- Fix Recommendations, Related Videos, and Auto-play next #508
- Fix queuing from current playlist #549
- Fix issues with randomising playlists #485
- Workaround for crashes #113, #540
</news>
<assets>
<icon>resources/media/icon.png</icon>
<fanart>resources/media/fanart.jpg</fanart>
Expand Down
Loading
Loading