Skip to content

Commit 6575b73

Browse files
committed
Fix: API version and revert API-v4
1 parent 2a8bd1c commit 6575b73

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

src/components/VideoCard.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
</div>
1717
</v-card-text>
1818
<v-card-actions class="pt-0">
19-
<v-btn icon :loading="loading_video" @click="load_video" :href="`${stc.afr.v4}/youtube/download/video/${id}`">
19+
<v-btn icon :loading="loading_video" @click="load_video" :href="`${stc.afr.v3}/youtube/download/video/${id}`">
2020
<v-icon color="red">mdi-download-box</v-icon>
2121
</v-btn>
22-
<v-btn icon :loading="loading_audio" @click="load_audio" :href="`${stc.afr.v4}/youtube/download/audio/${id}`" style="margin-left: 0;">
22+
<v-btn icon :loading="loading_audio" @click="load_audio" :href="`${stc.afr.v3}/youtube/download/audio/${id}`" style="margin-left: 0;">
2323
<v-icon color="red">mdi-download-box-outline</v-icon>
2424
</v-btn>
2525
<v-spacer></v-spacer>

src/components/YoutubePage.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,17 +103,17 @@
103103
<v-col v-for="(object, index) in videos" :key="'V'+index">
104104
<VideoCard :title="object.title"
105105
:id="object.id"
106-
:source="`${stc.afr.api}/youtube/video/${object.id}`"
106+
:source="`${stc.afr.v2}/youtube/video/${object.id}`"
107107
@showComment="comment($event)" />
108108
</v-col>
109109
<v-col v-for="(object, index) in audios" :key="'A'+index">
110110
<AudioCard :title="object.title"
111111
:id="object.id"
112-
:source="`${stc.afr.api}/youtube/audio/${object.id}`" />
112+
:source="`${stc.afr.v2}/youtube/audio/${object.id}`" />
113113
</v-col>
114114
<v-col v-for="(object, index) in subscriptions" :key="index">
115115
<SubscriptionCard :title="object.video_title"
116-
:source="`${stc.afr.api}/youtube/video/${object.video_id}`"
116+
:source="`${stc.afr.v2}/youtube/video/${object.video_id}`"
117117
:id="object.video_id"
118118
:channel="object.author_name"
119119
:thumbnails="`${stc.yt.thumbnail}/${object.video_id}/mqdefault.jpg`"
@@ -171,7 +171,7 @@
171171
startup(){
172172
if (window.location.hash.includes("#subscriptions")){
173173
this.$data.chargement = true
174-
fetch(`${stc.afr.api}/youtube/subscriptions/${window.location.hash.split("=")[1]}`)
174+
fetch(`${stc.afr.v3}/youtube/subscriptions/${window.location.hash.split("=")[1]}`)
175175
.then(response => {
176176
if(response.ok){
177177
return response.json()

src/plugins/static.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
export default {
22
afr: {
3-
api: 'https://api.arfevrier.fr/v2',
4-
v3: 'https://api.arfevrier.fr/v3',
5-
v4: 'https://oracle.arfevrier.fr/api/v4',
3+
v2: 'https://api.arfevrier.fr/v2',
4+
v3: 'https://api.arfevrier.fr/v3'
65
},
76
yt: {
87
api: 'https://www.googleapis.com/youtube/v3',

0 commit comments

Comments
 (0)