Skip to content

Commit 801d05e

Browse files
committed
Updated examples in README
Also removed examples for html and markdown output since that code doesn't work correctly and throws errors in some cases.
1 parent ef785fc commit 801d05e

File tree

1 file changed

+9
-22
lines changed

1 file changed

+9
-22
lines changed

README.md

Lines changed: 9 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ Show all info about season 1 episode 1 of 'Firefly'
3636

3737
omdbtool -t firefly --season 1 --episode 1
3838

39-
Show all info about season 1 of 'Firefly'
39+
Show all info about the series 'Firefly', in JSON format
4040

41-
omdbtool -r JSON -t firefly --season 1
41+
omdbtool -t firefly -r JSON
4242

4343
Show all info about latest 'True Grit' movie
4444

@@ -48,11 +48,7 @@ Show all info about 1969 version of 'True Grit'
4848

4949
omdbtool -t "True Grit" -y 1969
5050

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
5652

5753
omdbtool -t Cars | sed -n '/^imdbrating/{n;p;}'
5854

@@ -75,19 +71,6 @@ Show info by IMDb id
7571

7672
omdbtool -i tt0103064
7773

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-
9174

9275
### Example to get ratings for all movies in current directory
9376

@@ -104,8 +87,12 @@ Save following code to file `get_ratings.sh` (make sure to update the path in li
10487
echo "$title * $restitle * $year * $rating"
10588
done
10689

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)_
10996

11097

11198
## Notes ##

0 commit comments

Comments
 (0)