Link Preview

A small plugin for Nicotine+ to display preview information like title and description about links sent in chats.

Plugin created with Nicotine+ Plugin Template made by Nachtalb.

Installation

Open Nicotine+ settings, go to General > Plugins and click + Add Plugins. After that download the latest release and extract it into the plugins folder.

Remove the version from the folder name. The folder name must stay the same across version upgrades otherwise you will loose any changed settings.

Now you can enable the Link Preview plugin in the previously opened plugin settings.

Commands

  • /lp-update manually check for updates.
  • /lp-reload reload the plugin.

Settings

NameFunctionDefault
Check for UpdatesCheck for updates on start and periodicallyEnabled
Message ColourHow the message should be colouredAction
Link Preview

Template for how to display the information. Available placeholders are:

  • {site_name}: Eg. YouTube, Google & Twitter
  • {title}: Eg. "Some video title foo bar", "Your search query on google"
  • {description}: Eg. "This is some video description on youtube"
  • {url}: The URL which was sent in the chat message
['* Title: {site_name} {title}', '* Description: {description}']
Domain Blacklist

This may come in useful eg. when you have the YouTube Link Preview plugin active that has more detailed information about youtube videos.

Prefix any regex with r/.

You can use this regex if you use the YouTube plugin (see plugin description to copy it): r/(?:www\.|m\.)?youtu(?:be\-nocookie\.com|\.be|be\.com)

[]
Domain WhitelistWorks the same as the blacklist but the other way around. Blacklist will be ignored.[]

GitHub

GitHub - Nachtalb/link_preview: Preview title and other information about links sent to chats.
Preview title and other information about links sent to chats. - GitHub - Nachtalb/link_preview: Preview title and other information about links sent to chats.