added new crunchyroll endpoints
This commit is contained in:
parent
fb5db3cc14
commit
59eccd394c
@ -28,8 +28,14 @@
|
|||||||
<option :value="6">Edge (DRM PROTECTED)</option>
|
<option :value="6">Edge (DRM PROTECTED)</option>
|
||||||
<option :value="7">Chrome (DRM PROTECTED)</option>
|
<option :value="7">Chrome (DRM PROTECTED)</option>
|
||||||
<option :value="8">Web Fallback (DRM PROTECTED)</option>
|
<option :value="8">Web Fallback (DRM PROTECTED)</option>
|
||||||
<option :value="9">Android (DRM PROTECTED)</option>
|
<option :value="9">Android Phone (DRM PROTECTED)</option>
|
||||||
<option :value="10">Samsung TV (DRM PROTECTED)</option>
|
<option :value="10">Android Tablet (DRM PROTECTED)</option>
|
||||||
|
<option :value="11">Samsung TV (DRM PROTECTED)</option>
|
||||||
|
<option :value="12">Chromecast (DRM PROTECTED)</option>
|
||||||
|
<option :value="13">Fire TV (DRM PROTECTED)</option>
|
||||||
|
<option :value="14">Android TV (DRM PROTECTED)</option>
|
||||||
|
<option :value="15">LG TV (DRM PROTECTED)</option>
|
||||||
|
<option :value="16">Roku (DRM PROTECTED)</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-col items-center p-3 bg-[#11111189] rounded-xl select-none">
|
<div class="flex flex-col items-center p-3 bg-[#11111189] rounded-xl select-none">
|
||||||
|
@ -289,24 +289,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-row gap-3">
|
<div class="flex flex-row gap-3">
|
||||||
<!-- <div v-if="service === 'crunchyroll'" class="relative flex flex-col w-full">
|
|
||||||
<select
|
|
||||||
v-model="hardsub"
|
|
||||||
name="episode"
|
|
||||||
class="bg-[#5c5b5b] focus:outline-none px-3 py-2 rounded-xl text-sm text-center cursor-pointer"
|
|
||||||
:disabled="isHardsubDisabled"
|
|
||||||
>
|
|
||||||
<option :value="false" class="text-sm text-slate-200">Hardsub: false</option>
|
|
||||||
<option :value="true" class="text-sm text-slate-200">Hardsub: true</option>
|
|
||||||
</select>
|
|
||||||
<div
|
|
||||||
class="absolute w-full h-9 bg-[#afadad] rounded-xl transition-all flex flex-row items-center justify-center gap-1 text-black"
|
|
||||||
:class="isFetchingEpisodes ? 'opacity-100' : 'opacity-0 pointer-events-none'"
|
|
||||||
>
|
|
||||||
<Icon name="mdi:loading" class="h-6 w-6 animate-spin" />
|
|
||||||
<div class="text-sm">Loading</div></div
|
|
||||||
>
|
|
||||||
</div> -->
|
|
||||||
<div v-if="service === 'crunchyroll'" class="relative flex flex-col w-full">
|
<div v-if="service === 'crunchyroll'" class="relative flex flex-col w-full">
|
||||||
<select v-model="quality" name="quality" class="bg-[#5c5b5b] focus:outline-none px-3 py-2 rounded-xl text-sm text-center cursor-pointer">
|
<select v-model="quality" name="quality" class="bg-[#5c5b5b] focus:outline-none px-3 py-2 rounded-xl text-sm text-center cursor-pointer">
|
||||||
<option :value="1080" class="text-sm text-slate-200">1080p</option>
|
<option :value="1080" class="text-sm text-slate-200">1080p</option>
|
||||||
|
@ -357,13 +357,43 @@ export async function crunchyGetPlaylist(q: string, geo: string | undefined) {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 9,
|
id: 9,
|
||||||
name: 'Android',
|
name: 'Android Phone',
|
||||||
url: `/android/phone/play`
|
url: `/android/phone/play`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 10,
|
id: 10,
|
||||||
|
name: 'Android Tablet',
|
||||||
|
url: `/android/tablet/play`
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 11,
|
||||||
name: 'Samsung TV',
|
name: 'Samsung TV',
|
||||||
url: `/tv/samsung/play`
|
url: `/tv/samsung/play`
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 12,
|
||||||
|
name: 'Chromecast',
|
||||||
|
url: `/tv/chromecast/play`
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 13,
|
||||||
|
name: 'Fire TV',
|
||||||
|
url: `/tv/fire_tv/play`
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 14,
|
||||||
|
name: 'Android TV',
|
||||||
|
url: `/tv/android_tv/play`
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 15,
|
||||||
|
name: 'LG TV',
|
||||||
|
url: `/tv/lg/play`
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 16,
|
||||||
|
name: 'Roku',
|
||||||
|
url: `/tv/roku/play`
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -377,7 +407,8 @@ export async function crunchyGetPlaylist(q: string, geo: string | undefined) {
|
|||||||
|
|
||||||
const headersLoc = {
|
const headersLoc = {
|
||||||
Authorization: `Bearer ${login.access_token}`,
|
Authorization: `Bearer ${login.access_token}`,
|
||||||
'User-Agent': 'Crunchyroll/1.8.0 Nintendo Switch/12.3.12.0 UE4/4.27'
|
'User-Agent': 'Crunchyroll/1.8.0 Nintendo Switch/12.3.12.0 UE4/4.27',
|
||||||
|
'x-cr-disable-drm': 'true'
|
||||||
}
|
}
|
||||||
|
|
||||||
var playlist: VideoPlaylist
|
var playlist: VideoPlaylist
|
||||||
@ -696,7 +727,8 @@ export async function crunchyGetPlaylistMPD(q: string, geo: string | undefined)
|
|||||||
|
|
||||||
const headers = {
|
const headers = {
|
||||||
Authorization: `Bearer ${login.access_token}`,
|
Authorization: `Bearer ${login.access_token}`,
|
||||||
'User-Agent': 'Crunchyroll/1.8.0 Nintendo Switch/12.3.12.0 UE4/4.27'
|
'User-Agent': 'Crunchyroll/1.8.0 Nintendo Switch/12.3.12.0 UE4/4.27',
|
||||||
|
'x-cr-disable-drm': 'true'
|
||||||
}
|
}
|
||||||
|
|
||||||
const regex = /\/manifest\/([A-Z0-9]+)\/.*\?playbackGuid=([^&]+)/
|
const regex = /\/manifest\/([A-Z0-9]+)\/.*\?playbackGuid=([^&]+)/
|
||||||
|
Reference in New Issue
Block a user