-
-
Notifications
You must be signed in to change notification settings - Fork 204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subscriptions not all showing and scrolling does not show more #356
Comments
Hm, I'm unable to reproduce this. Could you please help me debugging this? Sorry for the wall of text, I hope it's not too much... Thank you! The Let me quickly explain how it works: The reason why I'm explaining all this is that I have a feeling that this calculation doesn't work correcly when using interface scaling on higher DPI screens. I'd like to know the Unfortunately, the new releases don't include the dev tools anymore, which means that you need to build the application on your own to be able to access the dev tools. See here: If you need any help with reading network requests or setting breakpoints, just let me know. |
It's setting the limit to 3 or 7, depending on whether I maximize or make it smaller, offset is always 0. There is a scroll event recorded, i see, and then a dispatch to fetch more content, but...nothing happens. Now I don't really have any idea how to debug JS stuff, but it seems to get to this function on lines 99-103 in let listener = function() {
if ( this.infiniteScroll( parent, threshold ) ) {
action( false );
}
}.bind( this ); and then...it does nothing. I have tried scrolling multiple times scrolling, no luck. |
This means that there's no error in the size calculation.
This is correct for the first request. All additional requests should be greater than 0 (number of already loaded records to be precise).
The event listener will be registered by the button component (at the bottom of a infinite scroll list), which is also responsible for all DOM events due to the current nature of EmberJS routes. As soon as
No problem. Just go to the "Sources" tab and navigate to the file you'd like to inspect, then set a breakpoint by clicking a line number. The execution will stop as soon as it reaches this line. The call stack and scope can be seen on the right, above the listed breakpoints. Execution control buttons are on the top (continue, step over/in/out, etc.). The console can also be used by pressing esc. Just set a breakpoint here Also please set a breakpoint here Thanks |
At line 161, at the first execution, the limit is at 3, as expected. There is no offset. However, the weird thing is that the It shows my twitch prime subscription twice, and one of the channels that I am 'subscribed' to no longer exists, but I still have emotes and it shows up in my subscriptions page on the twitch website. It never stops at line 206. |
Sorry, the name of the local var is
This doesn't make sense if you have more than 2 subscriptions and the requested offset was 0 (which is the case for the first request).
Because no additional requests are being made.
I'd not be surprised if this is the case. The subscriptions are part of the private API, so there might be something that has changed that I don't know of. I don't have Amazon Prime and thus no prime subscriptions right now. Are there any errors in the console log? This should be the case if the models/serializers don't match the data of the request. Please check the data of the first request, so we can be sure that this isn't a Twitch API issue. The length of the |
So just running the curl command, and when I put in an offset of 2, it gets me two of my subs (well, one, but duplicates because of twitch prime, I think, since they're overlapping right now). That makes sense, those are my two newest subscriptions. If I put in 5, the length of the "id": 12345,
"access_start": null,
"access_end": "DATE",
"expired": false,
"purchase_profile": {
"refundable": false,
"will_renew": false,
"paid_on": "DATE",
"expired": false,
"payment_provider": "samus",
"consecutive_months": MONTHS
},
"product": {
"name": "Twitch Prime",
"short_name": "twitch_prime",
"ticket_type": "turbo",
"owner_name": null,
"features": {
"bitrate_access": []
},
"interval_number": 1,
"recurring": false,
"partner_login": null,
"price": "$8.99",
"period": "Year",
"emoticons": []
} Note, the |
It looks like it's pulling the length from |
It's reading it from Could you please post the whole body of the API reponse when requesting all subscriptions at once, so I can see and analyse it? Only the headers contain sensitive data, but if you don't want to post it here, you can send me an email instead. The address is listed on my github profile. Thank you very much. |
{
"tickets": [
{
"id": 13326310,
"access_start": null,
"access_end": "2017-01-10T09:28:33Z",
"expired": false,
"purchase_profile": {
"refundable": false,
"will_renew": false,
"paid_on": "2016-12-07T09:28:33Z",
"expired": false,
"payment_provider": "samus",
"consecutive_months": 2
},
"product": {
"name": "Channel Subscription (OHN)",
"short_name": "uknighted",
"ticket_type": "chansub",
"owner_name": "outerheaven",
"features": {
"bitrate_access": []
},
"interval_number": 1,
"recurring": true,
"partner_login": "outerheaven",
"price": "$4.99",
"period": "Month",
"emoticons": ["redacted to make this not 10 pages long"]
}
},
{
"id": 12365650,
"access_start": null,
"access_end": "2016-12-09T16:52:04Z",
"expired": false,
"purchase_profile": {
"refundable": false,
"will_renew": false,
"paid_on": "2016-11-06T16:52:04Z",
"expired": true,
"payment_provider": "samus",
"consecutive_months": 2
},
"product": {
"name": "Channel Subscription (OHN)",
"short_name": "uknighted",
"ticket_type": "chansub",
"owner_name": "outerheaven",
"features": {
"bitrate_access": []
},
"interval_number": 1,
"recurring": true,
"partner_login": "outerheaven",
"price": "$4.99",
"period": "Month",
"emoticons": ["redacted to make this not 10 pages long"]
}
},
{
"id": 10239995,
"access_start": null,
"access_end": "2017-11-01T00:00:00Z",
"expired": false,
"purchase_profile": {
"refundable": false,
"will_renew": false,
"paid_on": "2016-10-01T06:48:02Z",
"expired": false,
"payment_provider": "samus",
"consecutive_months": 13
},
"product": {
"name": "Twitch Prime",
"short_name": "twitch_prime",
"ticket_type": "turbo",
"owner_name": null,
"features": {
"bitrate_access": []
},
"interval_number": 1,
"recurring": false,
"partner_login": null,
"price": "$8.99",
"period": "Year",
"emoticons": []
}
}
]
} |
Just an example of the emote list element, in case that matters: {
"regex_display": null,
"state": "active",
"url": "https://static-cdn.jtvnw.net/jtv_user_pictures/emoticon-11709-src-b82ca494d1fe0923-28x28.png",
"regex": "ohnFiddle"
} |
Was this a offset=0 and limit=7 request? |
Fixed by ebac2ec . |
And filter out Twitch turbo subscriptions Fixes #356
Description
Depending on the height of the window it will show 2 (~720px) or 5 (~1440px) subscriptions. There is no
show more
at the bottom, or any way to show more than that many subscriptions.Expected / Actual behavior
Either load all of the subscriptions or have a way to show more than is initially loaded.
Reproduction steps
*-twitch-gui
(works in bothlivestreamer-
andstreamlink-twitch-gui
)Environment details (operating system, etc.)
Windows and Linux
Comments, logs, screenshots, etc.
It seems like the number of subscribers shown is dictated by the size of the window.
Screenshots were taken in Linux.
Maximized window
Smallest possible window
The text was updated successfully, but these errors were encountered: