Warning: session_start(): open(/var/lib/php/sessions/sess_h207m6e7q6at50glar92ov8fvj, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
!7
sS channel = "UCSvK6EfxnMTajbe-Qpc6NvA";
static YouTubeChannelInfo info;
static JLabel lbl, lbl2, lblChannel;
static JSpinner spinner;
static int seconds;
p-noconsole {
info = youTubeChannelInfo(channel);
lbl = jcenteredlabel();
lbl2 = jcenteredlabel();
lblChannel = jcenteredlabel("Channel: " + info.title);
spinner = jspinner(10, 1, 60);
ImageSurface is = showBigText("Subscribers!", f getSubscribers, 1000).is;
addToWindowNorth(is, lblChannel);
addToWindowPack(is, vstack(lbl, lbl2,
jcenteredline(jlabel("Update every"), spinner, jlabel("seconds"))));
moveToTopRightCorner(is);
}
sS[] getSubscribers() {
if (seconds++ < intFromSpinner(spinner)) null;
seconds = 0;
YouTubeStats stats = youTubeStats(channel);
setText(lbl, "Views: " + stats.views);
setText(lbl2, "Videos: " + stats.videos);
ret new S[] { n(stats.subs, "sub"), n(stats.subs, "Sub") };
}