imdb-terminal 2.0.0 → 2.0.1

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 (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -2
  3. data/bin/imdb +11 -1
  4. metadata +12 -19
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: df8c9e075ec32ec9195b5a468edaafa0cbac1c5b1caae765749e2223219bca50
4
- data.tar.gz: 128db2671d90b4b7f74b6f521a1185b1c4b58891e18774cd7459062d7d883cd7
3
+ metadata.gz: a835730544b1acf9055d609a37a5727aecb9754878be3ccf1b873502b72fd771
4
+ data.tar.gz: 6a9bc9712e20f70d2eceb8169dc32d81263a0a65cf2418815a3774a05399aeda
5
5
  SHA512:
6
- metadata.gz: 0641bfb21f50c83ab60bcdb3873bbbfb3637b3182dcb391481d776e3ac27d8fc88be5e1b7ab27b9ed47e05aec1c7f4cbcc1254c81a3234a05f6289a9b2111bf1
7
- data.tar.gz: 34429a63cf57f0004cefd5ea23d8912e2b8b460a6c9be78518cb9d2c34438f0623151f22b4d77131cb954e7f6b0a7773339e1a54a290147e8edd6ae613a1eef0
6
+ metadata.gz: cf5bc22eb1a504498cb0a0843066b32c6fd0aaae995894f01616a27cebc3daac6c1c2bc996f28b7178c53a68dc9993f1dd1b4850118ea84fb42ebc2678b670f8
7
+ data.tar.gz: 51ae69f5e824dd50157bb2f770d8536ffb9121957166fb61710d281d09c6041f794b5b41a520b2d6c7aa56359592974ff7e098c5315cd4e8510411086a0bd2a5
data/README.md CHANGED
@@ -41,11 +41,13 @@ The screenshot gives you an overview of the layout of the panes:
41
41
  gem install imdb-terminal
42
42
  ```
43
43
 
44
- ### Dependencies
44
+ ### Dependencies (Linux/macOS)
45
45
  - **w3mimgdisplay** (for poster display): `sudo apt install w3m-img`
46
46
  - **ImageMagick** (for poster processing): `sudo apt install imagemagick`
47
47
  - **xdotool** (for image redraw on workspace switch): `sudo apt install xdotool`
48
48
 
49
+ **Windows**: All core functionality works on Windows, but poster display is not available due to terminal limitations.
50
+
49
51
  ### Quick Start
50
52
  ```bash
51
53
  git clone <repository>
@@ -138,8 +140,9 @@ In the Genres pane:
138
140
  ### Common Issues
139
141
 
140
142
  **No posters displayed:**
141
- - Ensure w3m-img is installed: `sudo apt install w3m-img`
143
+ - **Linux/macOS**: Ensure w3m-img is installed: `sudo apt install w3m-img`
142
144
  - Check terminal supports images (works best in terminals like urxvt, kitty, iTerm2)
145
+ - **Windows**: Poster display is not supported due to terminal limitations
143
146
 
144
147
  **Posters disappear after workspace switch:**
145
148
  - Ensure xdotool is installed: `sudo apt install xdotool`
data/bin/imdb CHANGED
@@ -46,6 +46,9 @@ DATA_DIR = File.join(Dir.home, '.imdb', 'data')
46
46
  CACHE_MUTEX = Mutex.new
47
47
  MAX_FETCH_RETRIES = 3
48
48
 
49
+ # Platform detection
50
+ WINDOWS = Gem.win_platform?
51
+
49
52
  # MAIN CLASS {{{1
50
53
  class IMDBApp
51
54
  # INITIALIZATION {{{1
@@ -1320,7 +1323,11 @@ class IMDBApp
1320
1323
  help_text << " • Use genre filters to find specific types of content\n".fg(230)
1321
1324
  help_text << " • Dump list removes items from main view permanently\n".fg(230)
1322
1325
  help_text << " • TMDb provides streaming provider information\n".fg(230)
1323
- help_text << " • Posters are displayed in the terminal using w3mimgdisplay\n".fg(230)
1326
+ unless WINDOWS
1327
+ help_text << " • Posters are displayed in the terminal using w3mimgdisplay\n".fg(230)
1328
+ else
1329
+ help_text << " • Poster display not available on Windows\n".fg(230)
1330
+ end
1324
1331
 
1325
1332
  help_text
1326
1333
  end
@@ -1803,6 +1810,8 @@ class IMDBApp
1803
1810
  end
1804
1811
 
1805
1812
  def show_poster(tconst) #{{{2
1813
+ return if WINDOWS # Skip image display on Windows for now
1814
+
1806
1815
  w3m = "/usr/lib/w3m/w3mimgdisplay"
1807
1816
  return unless File.executable?(w3m)
1808
1817
  cache = cache_dir
@@ -1848,6 +1857,7 @@ class IMDBApp
1848
1857
  end
1849
1858
 
1850
1859
  def check_image_redraw #{{{2
1860
+ return if WINDOWS # Skip image redraw on Windows
1851
1861
  # Only check if we have an image currently displayed
1852
1862
  return unless @current_image && File.exist?(@current_image)
1853
1863
 
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: 2.0.0
4
+ version: 2.0.1
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-08-15 00:00:00.000000000 Z
11
+ date: 2025-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rcurses
@@ -70,8 +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
- 2.0.0: Breaking change - requires rcurses 6.0.0+ with explicit initialization for
74
- Ruby 3.4+ compatibility.'
73
+ 2.0.1: Added Windows support - all core functionality works on Windows with graceful
74
+ handling of platform-specific features.'
75
75
  email: g@isene.com
76
76
  executables:
77
77
  - imdb
@@ -87,21 +87,14 @@ metadata:
87
87
  source_code_uri: https://github.com/isene/imdb
88
88
  homepage_uri: https://isene.com/
89
89
  documentation_uri: https://github.com/isene/imdb#readme
90
- post_install_message: |
91
- IMDb Terminal Browser installed successfully!
92
-
93
- To get started:
94
- 1. Run: imdb
95
- 2. On first run, the app will scrape IMDb Top 250 lists
96
- 3. Optional: Get a free TMDb API key for streaming info
97
- 4. Press '?' for help once running
98
-
99
- External dependencies for full functionality:
100
- - w3m-img (for poster display): sudo apt install w3m-img
101
- - imagemagick (for poster processing): sudo apt install imagemagick
102
- - xdotool (for image redraw on workspace switch): sudo apt install xdotool
103
-
104
- Enjoy discovering your next favorite movie! :-)
90
+ post_install_message: "✓ IMDb Terminal Browser installed successfully!\n\nTo get started:\n1.
91
+ Run: imdb\n2. On first run, the app will scrape IMDb Top 250 lists\n3. Optional:
92
+ Get a free TMDb API key for streaming info\n4. Press '?' for help once running\n\nExternal
93
+ dependencies for full functionality (Linux/macOS only):\n- w3m-img (for poster display):
94
+ sudo apt install w3m-img\n- imagemagick (for poster processing): sudo apt install
95
+ imagemagick\n- xdotool (for image redraw on workspace switch): sudo apt install
96
+ xdotool\n\nNote: Poster display is not available on Windows, but all other \nfunctionality
97
+ works normally.\n\nEnjoy discovering your next favorite movie! :-)\n"
105
98
  rdoc_options: []
106
99
  require_paths:
107
100
  - "."