Commit 558712e
Show ADD TO PLAYLIST for podcast episodes and audiobooks (#1474)
* Add ADD TO PLAYLIST menu support for podcasts and audiobooks
Extend the playlist functionality (originally added for radio stations in
PR #1356) to also support podcasts, podcast episodes, and audiobooks.
Like radio stations, these items can only be added to playlists stored
in the builtin provider.
https://claude.ai/code/session_01Pme3UUJzT29ZfaJ752c8QM
* Remove PODCAST from playlist menu support, keep only PODCAST_EPISODE
Only podcast episodes (not the podcast itself) can be added to playlists.
https://claude.ai/code/session_01Pme3UUJzT29ZfaJ752c8QM
* Use firstItem instead of items[0] in playlist menu checks
Consistent with the existing firstItem const defined at the top of
getContextMenuItems, which is guarded by the early return on empty items.
https://claude.ai/code/session_01Pme3UUJzT29ZfaJ752c8QM
---------
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Steven Travers <steven.travers20@gmail.com>1 parent 4a6d61c commit 558712e
File tree
3 files changed
+21
-14
lines changed- src
- layouts/default
- plugins/api
3 files changed
+21
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
145 | | - | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
146 | 149 | | |
147 | 150 | | |
148 | 151 | | |
| |||
160 | 163 | | |
161 | 164 | | |
162 | 165 | | |
163 | | - | |
164 | | - | |
| 166 | + | |
| 167 | + | |
165 | 168 | | |
166 | 169 | | |
167 | 170 | | |
| |||
189 | 192 | | |
190 | 193 | | |
191 | 194 | | |
192 | | - | |
193 | | - | |
| 195 | + | |
| 196 | + | |
194 | 197 | | |
195 | 198 | | |
196 | 199 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
839 | 839 | | |
840 | 840 | | |
841 | 841 | | |
842 | | - | |
| 842 | + | |
843 | 843 | | |
844 | 844 | | |
845 | 845 | | |
846 | | - | |
847 | | - | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
848 | 850 | | |
849 | 851 | | |
850 | 852 | | |
| |||
860 | 862 | | |
861 | 863 | | |
862 | 864 | | |
863 | | - | |
| 865 | + | |
864 | 866 | | |
865 | | - | |
866 | | - | |
867 | | - | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
868 | 872 | | |
869 | 873 | | |
870 | 874 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
707 | 707 | | |
708 | 708 | | |
709 | 709 | | |
710 | | - | |
| 710 | + | |
711 | 711 | | |
712 | 712 | | |
713 | 713 | | |
| |||
0 commit comments