imdb-terminal 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/imdb +12 -2
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44360341d112b1115c484d11fcbecc250618c6cbb20791b33d6afe9dac43d269
|
4
|
+
data.tar.gz: bbfd0e1b1c8a4a2178743bf76786c763591c3ba422e275b403e826cbf1dfada1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d12e3fdc3780aed6392ea05b41f61adc4b3f942cf0dd69971c5fdc479a44581a047251a9c8d810c34fd7d3a6c67166b9031fbe7b0a0bdd0f29db55ad7930056a
|
7
|
+
data.tar.gz: 15c08b8c4e6bd4b2c7433ef23b2f896366b622246aaf8bf29bb422a6ef55613a938fa562616b3db0c592e069a8ed599b1e97e54ff2988c15a43051e357a5d1f3
|
data/bin/imdb
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
# for any damages resulting from its use. Further, I am under no
|
15
15
|
# obligation to maintain or extend this software. It is provided
|
16
16
|
# on an 'as is' basis without any expressed or implied warranty.
|
17
|
-
# Version: 1.
|
17
|
+
# Version: 1.2: Added jump-to for searched&scraped items
|
18
18
|
|
19
19
|
# REQUIRES AND CONSTANTS {{{1
|
20
20
|
require 'io/console'
|
@@ -2147,7 +2147,17 @@ class IMDBApp
|
|
2147
2147
|
save_current_state
|
2148
2148
|
build_genre_list
|
2149
2149
|
rebuild_index
|
2150
|
-
|
2150
|
+
|
2151
|
+
# Jump to the newly added item in the list
|
2152
|
+
item_index = @index_list.find_index { |item| item[:id] == @preview_item[:id] }
|
2153
|
+
if item_index
|
2154
|
+
@list.index = item_index
|
2155
|
+
update_list # This will scroll the list to show the selected item
|
2156
|
+
update_detail # Update detail pane to show the item
|
2157
|
+
@footer.say("✓ Added #{@preview_item[:title]} to library and jumped to it")
|
2158
|
+
else
|
2159
|
+
@footer.say("✓ Added #{@preview_item[:title]} to library")
|
2160
|
+
end
|
2151
2161
|
sleep(1.5)
|
2152
2162
|
end
|
2153
2163
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: imdb-terminal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Geir Isene
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-06-
|
11
|
+
date: 2025-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rcurses
|
@@ -70,7 +70,8 @@ description: 'Discover and manage movies and TV series from IMDb''s Top 250 list
|
|
70
70
|
Features smart search with preview mode, advanced filtering by rating/year/genre,
|
71
71
|
streaming information via TMDb, wish lists, and terminal poster display. Enhanced
|
72
72
|
with jump-to-existing items, duplicate management, and robust data handling. Version
|
73
|
-
1.1: A full rewrite using rcurses - with lots of new functionality.
|
73
|
+
1.1: A full rewrite using rcurses - with lots of new functionality. 1.2: Added jump-to
|
74
|
+
for searched&scraped items.'
|
74
75
|
email: g@isene.com
|
75
76
|
executables:
|
76
77
|
- imdb
|