@@ -502,7 +502,7 @@ private SKBitmap DrawMessage(SKBitmap sectionImage, List<SKBitmap> imageList, Re
502
502
SKRect emoteRect = new SKRect ( imageLeft , imageTop , imageLeft + imageWidth , imageTop + imageHeight ) ;
503
503
sectionImageCanvas . DrawBitmap ( emoteImage , emoteRect , imagePaint ) ;
504
504
}
505
- drawPos . X += emoteImage . Width ;
505
+ drawPos . X += ( int ) Math . Ceiling ( imageWidth + ( 3 * renderOptions . image_scale ) ) ;
506
506
}
507
507
else
508
508
{
@@ -777,8 +777,8 @@ private void GetThirdPartyEmotes(List<ThirdPartyEmote> thirdPartyEmotes, Streame
777
777
if ( renderOptions . bttv_emotes )
778
778
{
779
779
//Global BTTV emotes
780
- JObject BBTV = JObject . Parse ( client . DownloadString ( "https://api.betterttv.net/2/ emotes" ) ) ;
781
- foreach ( var emote in BBTV [ "emotes" ] )
780
+ JArray BBTV = JArray . Parse ( client . DownloadString ( "https://api.betterttv.net/3/cached/ emotes/global " ) ) ;
781
+ foreach ( var emote in BBTV )
782
782
{
783
783
string id = emote [ "id" ] . ToString ( ) ;
784
784
byte [ ] bytes = client . DownloadData ( String . Format ( "https://cdn.betterttv.net/emote/{0}/2x" , id ) ) ;
@@ -792,8 +792,8 @@ private void GetThirdPartyEmotes(List<ThirdPartyEmote> thirdPartyEmotes, Streame
792
792
//Channel specific BTTV emotes
793
793
try
794
794
{
795
- JObject BBTV_channel = JObject . Parse ( client . DownloadString ( "https://api.betterttv.net/2/channels/ " + streamerInfo . name ) ) ;
796
- foreach ( var emote in BBTV_channel [ "emotes " ] )
795
+ JObject BBTV_channel = JObject . Parse ( client . DownloadString ( "https://api.betterttv.net/3/cached/users/twitch/ " + streamerInfo . id ) ) ;
796
+ foreach ( var emote in BBTV_channel [ "sharedEmotes " ] )
797
797
{
798
798
string id = emote [ "id" ] . ToString ( ) ;
799
799
byte [ ] bytes = client . DownloadData ( String . Format ( "https://cdn.betterttv.net/emote/{0}/2x" , id ) ) ;
@@ -810,8 +810,8 @@ private void GetThirdPartyEmotes(List<ThirdPartyEmote> thirdPartyEmotes, Streame
810
810
if ( renderOptions . ffz_emotes )
811
811
{
812
812
//Global FFZ emotes
813
- JObject FFZ = JObject . Parse ( client . DownloadString ( "https://api.betterttv.net/2/frankerfacez_emotes /global" ) ) ;
814
- foreach ( var emote in FFZ [ "emotes" ] )
813
+ JArray FFZ = JArray . Parse ( client . DownloadString ( "https://api.betterttv.net/3/cached/frankerfacez/emotes /global" ) ) ;
814
+ foreach ( var emote in FFZ )
815
815
{
816
816
string id = emote [ "id" ] . ToString ( ) ;
817
817
byte [ ] bytes = client . DownloadData ( String . Format ( "https://cdn.betterttv.net/frankerfacez_emote/{0}/1" , id ) ) ;
@@ -825,8 +825,8 @@ private void GetThirdPartyEmotes(List<ThirdPartyEmote> thirdPartyEmotes, Streame
825
825
//Channel specific FFZ emotes
826
826
try
827
827
{
828
- JObject FFZ_channel = JObject . Parse ( client . DownloadString ( "https://api.betterttv.net/2/frankerfacez_emotes/channels /" + streamerInfo . id ) ) ;
829
- foreach ( var emote in FFZ_channel [ "emotes" ] )
828
+ JArray FFZ_channel = JArray . Parse ( client . DownloadString ( "https://api.betterttv.net/3/cached/frankerfacez/users/twitch /" + streamerInfo . id ) ) ;
829
+ foreach ( var emote in FFZ_channel )
830
830
{
831
831
string id = emote [ "id" ] . ToString ( ) ;
832
832
byte [ ] bytes ;
0 commit comments