cross-posted from: https://lemmy.world/post/530920

Magic-tape is an image supporting fuzzy finder command line interface YouTube client.

https://gitlab.com/christosangel/magic-tape

Image rendering can be done with the use of ueberzugpp, ueberzug, kitty terminal or chafa.

With magic-tape, through the main menu, the user can:

  • Browse videos from subscriptions.

  • Browse through trending video feed.

  • make a video search, using keywords or phrases.

  • Watch a previously watched video (watch history).

  • Browse videos from a subcsribed channel.

  • Watch a liked video.

  • Repeat the previous selection.

  • Repeat a previous search (search history).

  • Watch/download video/audio content, in various formats.

Through the miscellaneous menu the user can

  • Set up Preferences (configuration).

  • Like / Unlike a video.

  • Synchronize the above actions with their YouTube account.

  • Import subscriptions from YouTube.

  • Subscribe to/ Unsubscribe from a channel.

  • Clear their watch/search history, liked videos, thumbnail cache.

    • christosOP
      link
      31 year ago

      Thanks! Any feedback would be appreciated :)

  • Archy
    link
    21 year ago

    Looks like a cool script. I am learning different TUI tools now and willing to migrate some from GUI. This one gives me trouble. I probably did something wrong. When I press m then P - nothing happens. Supposedly, there should be preferences. And the program didn’t ask me on the first run to configure anything.

    When I search a video with s - I get in a preview window: zsh:11: command not found: draw_preview

    • christosOP
      link
      11 year ago

      I do not know how this script is interacting with zsh. Have you tried to run it with bash?

      • Archy
        link
        1
        edit-2
        1 year ago
        $ echo $0
        bash
        

        Strange… It still displays the same zsh error and the preferences are not displayed. I even tried to execute the program using bash magic-tape.sh while in bash

        I tried on a machine where only bash is installed, and the search window is blank, yt-dlp gives an error that flashes and I can’t read quickly, no preferences appear, again it flashes some text but I cannot read it. Also, the location for the folder is not relative, it has to be in ~/git/magic-tape otherwise it will give you multiple errors.

        • christosOP
          link
          11 year ago

          If it is displaying zsh error messages, while you are in bash, I am afraid this is an issue on its own.

          I am confident that once you resolve this shell conflict, the script will do its work. I would gladly help you, but I know nothing of zsh.

          May I ask about your operating system?

          • Archy
            link
            11 year ago

            May I ask about your operating system? You can read my edit above for more info. I tried it on Arch + Zsh,Bash; Ubuntu 23.04 + Zsh,Bash; Debian 12 + Bash

            • christosOP
              link
              11 year ago

              I use linumxmit and mxlinux, the script works_in_my_machine.

        • christosOP
          link
          11 year ago

          Have you followed the instructions correctly to install the script?

          Obviously something is not ok, and I find it surprising that the script is not working in all these distros.

          You have zsh errors with the Debian as well, although it is not installed?

          Is yt-dlp up to date? If you use this command on its own, do you get any errors?

          I am trying to troubleshoot, but in the dark.

          • Archy
            link
            1
            edit-2
            1 year ago

            Yeah, I followed the instructions, created necessary folders. yt-dlp is not the latest version, but the latest from Debian bookworm repositories (2023.03.04). yt-dlp works perfectly to download and convert videos with ffmpeg.

            When I try to browse trending yt-dlp says:

            yt-dlp: error: playlist end "0" must be must be greater than or equal to playlist start "1"
            

            I don’t have zsh errors on Debian where only bash is installed, after searching for a video I got a blank screen with the only option:

            Select video:
            search videos 1 to 0:
            > 1 Abort Selection
            
            • christosOP
              link
              11 year ago

              On Debian, what preference values have you entered (P option on misc menu)?

              • Archy
                link
                11 year ago

                That P menu doesn’t open on all systems that I’ve tried

                • christosOP
                  link
                  11 year ago

                  You can open the P option by either double-clicking on it with the mouse, or entering capital P with the keyboard. You can get to select the P option through the misc menu.

                  Do you get any error messages when doing so?

                  Have you installed all the dependencies of the script (rofi in particular)?

  • @[email protected]
    link
    fedilink
    1
    edit-2
    1 year ago

    Would be very cool to support importing NewPipe or Freetube subscriptions. Or any other offline subscription sync that doesnt require a Youtube account.

    • christosOP
      link
      11 year ago

      I haven’t used either, so I have no idea about that. I imagine that these programs exporting someting like a json file, like invidious. I initially was using the yt-dlp command to extract from invidious, but it was somehow not stable, and an extra step to the process, so I opted for syncing with the yt account subscription feed. One can use the script without a yt account, however the F option (for subscription feed) will not function. The user can sub and browse the content of selected channels (c option).