GithubHelp home page GithubHelp logo

searchgguide's People

Contributors

kphrx avatar theoria24 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

pooza

searchgguide's Issues

ジャンルに再対応

一度対応したが #15 の緊急対応で削除。 #12 の再実装で良さそうだがジャンルコードが変わっているので要確認。

24時台の番組でエラー

searchGguide/main.rb

Lines 34 to 38 in 9db38c5

if st_h > 24 then
date = Time.new(t.year, dm, dd, st_h - 24, st_m) + 24*60*60
else
date = Time.new(t.year, dm, dd, st_h, st_m)
end

24より大きい時間が渡されたときに30時間制の修正がかかるようになってしまっているので24時台の番組があるとエラーになる

Gem化

したい(作法がわからない)

複数の県にまたがる放送局が重複

局ごとでなく都道府県ごとに取得しているので2県以上カバーしてる局だと同一番組が複数表示されてしまう。
対処法思いつきません。完全一致を削除するしかないか。

あとNHKの番組だとEテレ1,2,3でそれぞれ引っかかって来るのでめっちゃ多くなりますね。

番組の小ジャンルの指定

小ジャンルは数が多く、実装しても参照しづらい(すべてのジャンル名を覚えるのは現実的でない)ので未定です。(対話モードを実装するか?)

大ジャンルについては #12 で対応しました。

動かない

ruby main.rb -f "%Y/%m/%d(%a) %H:%M" <keyword>で開いているのですが、プログレスバーが0%のまま動きません。
Line 64の所にputs urlを入れたのですが、https://tv.yahoo.co.jp/api/adapter?query=選択したキーワード&siTypeId=3&areaId=10&start=0と表示して、startパラメーターが1秒ごとに変化するのですが何も起こりません。

Pythonやブラウザで開いたら、JSONの回答でなく、お探しのページは見つかりませんでした。と表示されます。

APIの問題ですか?それとも打ってるコマンドの問題ですか?

ルビーのバージョンは ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.arm64e-darwin20] です。
OSはmacOS Big Sur (11.0.1)です

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.