You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-22Lines changed: 9 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,9 +36,9 @@ Show all info about season 1 episode 1 of 'Firefly'
36
36
37
37
omdbtool -t firefly --season 1 --episode 1
38
38
39
-
Show all info about season 1 of 'Firefly'
39
+
Show all info about the series 'Firefly', in JSON format
40
40
41
-
omdbtool -r JSON -t firefly --season 1
41
+
omdbtool -t firefly -r JSON
42
42
43
43
Show all info about latest 'True Grit' movie
44
44
@@ -48,11 +48,7 @@ Show all info about 1969 version of 'True Grit'
48
48
49
49
omdbtool -t "True Grit" -y 1969
50
50
51
-
Show best guess for a misspelled name
52
-
53
-
omdbtool -t "Ture git"
54
-
55
-
Print movie's rating
51
+
Print movie's rating only
56
52
57
53
omdbtool -t Cars | sed -n '/^imdbrating/{n;p;}'
58
54
@@ -75,19 +71,6 @@ Show info by IMDb id
75
71
76
72
omdbtool -i tt0103064
77
73
78
-
Print raw JSON or XML data
79
-
80
-
omdbtool -t Cars -r JSON
81
-
82
-
Print data formated as html
83
-
84
-
omdbtool --format html -t cars
85
-
86
-
Print data formated as markdown
87
-
88
-
omdbtool --format markdown -t cars
89
-
90
-
91
74
92
75
### Example to get ratings for all movies in current directory
93
76
@@ -104,8 +87,12 @@ Save following code to file `get_ratings.sh` (make sure to update the path in li
104
87
echo "$title * $restitle * $year * $rating"
105
88
done
106
89
107
-
Then execute the saved command to fetch all the ratings: `./get_ratings.sh > ratings.txt`
108
-
(it'll take a while to retrieve all the data). Then you can open the `ratings.txt` file to see the movie ratings, or you can sort the movies by ratings to pick the best one to watch: `< ratings.txt sort -t* -k4 -r`
90
+
then execute the saved command to fetch all the ratings: `./get_ratings.sh > ratings.txt`
91
+
(it'll take a while to retrieve all the data). Then you can open the
92
+
`ratings.txt` file to see the movie ratings, or you can sort the movies by
93
+
ratings to pick the best one to watch: `< ratings.txt sort -t* -k4 -r`.
94
+
95
+
_(This used to be more useful when the API worked with inexact movie titles)_
0 commit comments