2323</template >
2424
2525<script >
26- import { streamServer , arcsiServerURL , rareShowsURL , customScheduleURL } from ' ~/constants'
26+ import { streamServer , rareShowsURL , customScheduleURL , arcsiShowsBaseURL } from ' ~/constants'
2727
2828export default {
2929 data () {
@@ -55,27 +55,27 @@ export default {
5555
5656 // refresh arcsiShows every 10 minutes
5757 if (minutes % 10 === 0 ) {
58- this .refreshArcsiShows ()
58+ this .refreshAllShows ()
5959 }
6060
61- // refresh arcsiShows every 3 minutes
61+ // refresh rareShows every 3 minutes
6262 if (minutes % 3 === 0 ) {
6363 this .refreshRareShows ()
6464 }
6565
66- // refresh arcsiShows every 4 minutes
66+ // refresh customSchedule every 4 minutes
6767 if (minutes % 4 === 0 ) {
6868 this .refreshCustomSchedule ()
6969 }
7070 },
71- async refreshArcsiShows () {
72- await this .$axios .get (arcsiServerURL )
71+ async refreshAllShows () {
72+ await this .$axios .get (arcsiShowsBaseURL + ' /all_without_items ' )
7373 .then ((res ) => {
74- this .$store .commit (' refreshArcsiShows ' , res .data )
74+ this .$store .commit (' refreshAllShowsList ' , res .data )
7575 })
7676 .catch ((e ) => {
7777 this .$sentry .captureException (e)
78- this .error ({ statusCode: 404 , message: ' Latest news not found' })
78+ this .error ({ statusCode: 404 , message: ' All shows endpoint not found' })
7979 })
8080 },
8181 async refreshRareShows () {
@@ -95,7 +95,7 @@ export default {
9595 })
9696 .catch ((e ) => {
9797 this .$sentry .captureException (e)
98- this .error ({ statusCode: 404 , message: ' Rare Shows not found' })
98+ this .error ({ statusCode: 404 , message: ' Custom schedule not found' })
9999 })
100100 }
101101
0 commit comments