Git Product home page Git Product logo

Comments (3)

garret1317 avatar garret1317 commented on August 16, 2024

hmm, doesnt appear to be in the stations list

<id>JOLK</id>
<name>NHKラジオ第1(福岡)</name>
<ascii_name>JOLK</ascii_name>
<ruby>えぬえいちけーらじおだいいちふくおか</ruby>
<areafree>0</areafree>
<timefree>1</timefree>

all nhk stations are areafree 0, timefree 1

maybe its in the programme json

from yt-dlp-rajiko.

garret1317 avatar garret1317 commented on August 16, 2024

ts_in_ng/ts_out_ng
in the programme json, might be it

for timefree available (CCL):

ts_in_ng: 0
ts_out_ng: 0

for no timefree (JOBK):

ts_in_ng: 2
ts_out_ng: 2

but what do the numbers mean? why are there two? is it ever 1?

might need to read the site js

from yt-dlp-rajiko.

garret1317 avatar garret1317 commented on August 16, 2024
if (!data.isAreaFree) {
   data.nowPlayArea = '<p class="live-detail__plan invalid-station">この放送局の番組は、<br />放送エリア外からは聴取することができません。</p>';
   $btnList.remove();
}
else if (+data.isFuture === 0) {
   data.nowPlayArea = '<p class="live-detail__plan">この番組は' + data.progStartTime + '〜配信予定です</p>';
}
else if (!_.contains($.Radiko.user_station_list, _stationId) && +data.tsInNg !== 2 && +data.tsOutNg === 2) {
   data.nowPlayArea = '<p class="live-detail__plan">この番組は、放送エリア外からは聴取することができません。 </p>';
   $btnList.remove();
}
else if (!_.contains($.Radiko.user_station_list, _stationId) && +data.tsInNg === 2 && data.tsOutNg === 2) {
   data.nowPlayArea = '<p class="live-detail__plan">この番組は、タイムフリー聴取機能では聴取することができません。</p>';
   $btnList.remove();
}
else if (_.contains($.Radiko.user_station_list, _stationId) && +data.tsInNg === 2) {
   data.nowPlayArea = '<p class="live-detail__plan">この番組は、タイムフリー聴取機能では聴取することができません。</p>';
   $btnList.remove();
}

from tsDetail.js

maybe
tsInNg = playable in the area
tsOutNg = playable outside the area

outside station area + playable in area + not playable outside = not available in your area
outside station area + not playable in area + not playable outside area = not available on timefree
inside station area + not playable in area = not available on timefree

we'll always be in the station area, so i think we only have to check tsInNg

from yt-dlp-rajiko.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.