samuelmaddock / gm-mediaplayer

:tv: Garry's Mod media player which features synchronized streaming media services
MIT License
49 stars 28 forks source link

hotfix for broken youtube content #57

Closed Physics-Dude closed 1 year ago

Physics-Dude commented 1 year ago

changes util.TableToJSON(media._metadata.extra) to ""

quick fix for https://github.com/samuelmaddock/gm-mediaplayer/issues/56

wrefgtzweve commented 1 year ago

I already included a fix for this in my pr that fixes some other issues in https://github.com/samuelmaddock/gm-mediaplayer/pull/55

dvdvideo1234 commented 1 year ago
PrintTable(media)

-----------------

_Owner  =   Player [1][[Sk$Bh]Trick or treat KID!]
_OwnerName  =   [Sk$Bh]Trick or treat KID!
_OwnerSteamID   =   STEAM_0:1:13929206
_StartTime  =   95.020797729492
_data   =   G3uQcxdyAA0
_id =   yt-G3uQcxdyAA0
_istimed    =   true
_metadata:
        duration    =   916
        queueTime   =   93.945495605469
        thumbnail   =   https://i.ytimg.com/vi/G3uQcxdyAA0/maxresdefault.jpg
        title   =   We Broke a $1 Million Off Road Camper
_playing    =   true
url =   https://www.youtube.com/watch?v=G3uQcxdyAA0
urlinfo:
        authority   =   www.youtube.com
        host    =   www.youtube.com
        path    =   /watch
        query:
                v   =   G3uQcxdyAA0
        scheme  =   https
videoId =   G3uQcxdyAA0
samuelmaddock commented 1 year ago

Closing in favor of https://github.com/samuelmaddock/gm-mediaplayer/pull/55