~firegem


#7 Keypresses may get repeated 4 months ago

Ticket created by ~firegem on ~exec64/imv

I'm having the same problem as issues #201 and #272 on Github, even on the newest version (4.3.1). I have a binding

[binds]
<Shift+X> = exec garbage put "$imv_current_file"; close

that can get executed multiple times when working with large images, and skipping can also occur when using the arrow keys.

For extra info, this is under wayland using wlroots 0.15.1.

#5 Cannot run wtwitch: "line 452: true: unbound variable" 1 year, 11 months ago

Comment by ~firegem on ~krathalan/wtwitch

Yup, that seems to have fixed it. There was a parse error during the first command, but it failed to show up again, and still gave the expected output anyway. Thanks for the quick fix

#5 Cannot run wtwitch: "line 452: true: unbound variable" 1 year, 11 months ago

bug added by ~firegem on ~krathalan/wtwitch

#5 Cannot run wtwitch: "line 452: true: unbound variable" 1 year, 11 months ago

Ticket created by ~firegem on ~krathalan/wtwitch

I get this on a fresh install of the program with all flags.

Starting wtwitch debug log
Package: installed via pacman
Versions: bash-5.0.17(1)-release wtwitch-1.7 jq-1.6 streamlink 1.4.1
Date: Sun 05 Jul 2020 11:30:55 PM EDT

Command: wtwitch -d

Config file:

{
  "player": "mpv",
  "quality": "best",
  "colors": "true",
  "subscriptions": [],
  "apiToken": "",
  "apiTokenExpiry": "1590532419"
}

-----------------------------------------------------------
                         Begin log
-----------------------------------------------------------

+ TITLE_CHARACTERS=11
+ case "${WTWITCH_LANG}" in
+ WTWITCH_LANG=en
+ TITLE_CHARACTERS=18
+ [[ 1590532419 == \n\u\l\l ]]
++ LANG=C
++ date +%s
+ [[ 1594006255 -gt true ]]
/usr/bin/wtwitch: line 452: true: unbound variable

Seems to have to do with the check for expired tokens;

# If the API token is null (e.g. there is no token),
# OR if API token is expired
if [[ "${apiToken}" == "null" ]] || [[ "$(LANG=C date +%s)" -gt "${apiTokenExpiry}" ]]; then
  download_token
fi

Setting apiTokenExpiry to an empty string changes the error to /usr/bin/wtwitch: line 452: mpv: unbound variable, replacing true with mpv.

#2 -c flag not listing all live channels, seemingly if too many are subscribed 2 years ago

Comment by ~firegem on ~krathalan/wtwitch

Yeah, this seems to have worked, the command outputs all online streamers with none missing from either list. Also tried it with >30 total streamers and it still works, thanks a lot!

I feel you with the markdown, too. Good thing they have a preview button on desktop though.

#2 -c flag not listing all live channels, seemingly if too many are subscribed 2 years ago

Comment by ~firegem on ~krathalan/wtwitch

jq '.subscriptions[].streamer' config.json | wc -l gives me 29 subscriptions. Of those, 3 are online but only two show up. Maybe there's just a hard cap.

#2 -c flag not listing all live channels, seemingly if too many are subscribed 2 years ago

Comment by ~firegem on ~krathalan/wtwitch

I realize the api error wouldn't appear on my log now because it's less detailed, but the rest still stands.

#2 -c flag not listing all live channels, seemingly if too many are subscribed 2 years ago

Comment by ~firegem on ~krathalan/wtwitch

Sorry for the late reply. Changing the ID does nothing to fix the output (with both my main account and a throwaway). The debug log looks similar to the one I linked in my last comment, meaning there is no error at the bottom, and only one channel shows up in stream_online.txt (the other live channels not appearing in stream_offline.txt).

#2 -c flag not listing all live channels, seemingly if too many are subscribed 2 years ago

Comment by ~firegem on ~krathalan/wtwitch

This was initially tested on Alacritty, though the same thing happens on the XFCE Terminal. The part of the log you pointed out also stood out to me, but I no longer have that specific cache file. The new online file, however, now contains just one channel, though the specific channel differs between each rerun.

Here is a new log showing the change in stream_online.txt. cating the file also just shows the one entry.

#2 -c flag not listing all live channels, seemingly if too many are subscribed 2 years ago

bug added by ~firegem on ~krathalan/wtwitch