Live Stream Badger
[resolved] Show game name? (6 posts)

  1. razor253
    Posted 3 years ago #

    Is this possible to add a game name instead of stream image?
    I analyzed the code, but I didn't know what to change.
    Twich API is simple, I know where the game name is, but amount of code in your widget scares me ;)
    If you could help me with this, simply change the image to game name, I would be grateful :)


  2. Tadas Krivickas
    Plugin Author

    Posted 3 years ago #

    Currently it does not pull the game name from Twitch API. But if you know how to code it would be quite easy to addon. The code is well structured.
    You would need something like:

    1. LSB_Stream - add new field, e.g. gamename
    2. LSB_API_Twitch#map_results() - add mapping
    3. LSB_Stream_Status_Widget#widget() - display this field

    Simple as that. I might add it in future versions as well. Also if your patch is well written I can just include it as well ;)

  3. razor253
    Posted 3 years ago #

    Your code structure is clear, but not for me :P
    If you could look at this API
    the game is in ['stream']['channel']['game']
    I really can't understand your code, I'm not programming completely ;)
    If you can add this, just write changes and post it here, if you don't have much time, don't test it, I will do it :)

  4. Tadas Krivickas
    Plugin Author

    Posted 3 years ago #

    You can hire someone here if you are desperate http://jobs.wordpress.net/

  5. razor253
    Posted 3 years ago #

    Your desire to help people can not be described, thanks :)

  6. Sebio
    Posted 2 years ago #


    it's a good function for the futur.

    Thank for this update.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Live Stream Badger
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic