Skip to content

[omdb] create omdb.pl - #912

Merged
dgl merged 3 commits into
irssi:masterfrom
bw1:omdb
Sep 9, 2026
Merged

dgl merged 3 commits into
irssi:masterfrom
bw1:omdb

Conversation

@bw1

@bw1 bw1 commented Aug 14, 2026

Copy link
Copy Markdown
Member

new script for replace imdb.pl

Comment thread scripts/omdb.pl
@@ -0,0 +1,335 @@
use strict;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add use warnings;

Comment thread scripts/omdb.pl
}

sub cmd {
my ($args, $server, $witem)=@_;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is my preference but I'd consider moving the 'my $url's below here and make it
my $url="http://www.omdbapi.com/?apikey=".Irssi::settings_get_str('omdb_apikey');
and then add the other path variables to $url
Add a return unless length Irssi::settings_get_str('omdb_apikey') > 0; also to safeguard against empty values

@dgl
dgl merged commit 9e43a25 into irssi:master Sep 9, 2026
1 check passed
@bw1
bw1 deleted the omdb branch September 9, 2026 02:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants