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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/imdb +12 -2
  3. metadata +4 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d763638e2b8cbd23494844067d5242ccbfa6a6fd86d7e14a8171c0ce7e4187ba
4
- data.tar.gz: 8f4d96f2e04333d068d2910e041a853177200568364f21358c19456c89755b38
3
+ metadata.gz: 44360341d112b1115c484d11fcbecc250618c6cbb20791b33d6afe9dac43d269
4
+ data.tar.gz: bbfd0e1b1c8a4a2178743bf76786c763591c3ba422e275b403e826cbf1dfada1
5
5
  SHA512:
6
- metadata.gz: 44db85c8c4ae50dda526ddf147e10ed68f0e29190bcf1496db7517e3374e33c557e5963c3747588132ba1ddec7b7b0cb6bee386de3a7f169a850ada19348a603
7
- data.tar.gz: f8367dfdd0a2580e6a8568e44b19cf9c5ba910792584056e7852fa67eca18057dc3f26e49409d3acfa37e86892089eb9d5b263c2ea79cb1ee54887004e04f51a
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.1: Full rewrite based on rcurses with much more functionality
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
- @footer.say("✓ Added #{@preview_item[:title]} to library")
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.1.0
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-08 00:00:00.000000000 Z
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