frankenstein91
commited on
Commit
·
54d8944
1
Parent(s):
9db1239
next pprint fix
Browse files- README.rst +3 -3
README.rst
CHANGED
@@ -82,7 +82,7 @@ Library usage
|
|
82 |
yt.set_filename('Dancing Scene from Pulp Fiction')
|
83 |
|
84 |
# You can also filter the criteria by filetype.
|
85 |
-
|
86 |
|
87 |
# [<Video: Sorenson H.263 (.flv) - 240p>,
|
88 |
# <Video: H.264 (.flv) - 360p>,
|
@@ -95,7 +95,7 @@ Library usage
|
|
95 |
# <Video: H.264 (.mp4) - 720p>
|
96 |
|
97 |
# You can also get all videos for a given resolution
|
98 |
-
|
99 |
|
100 |
# [<Video: H.264 (.flv) - 480p>,
|
101 |
# <Video: VP8 (.webm) - 480p>]
|
@@ -108,7 +108,7 @@ Library usage
|
|
108 |
# NOTE: get() can only be used if and only if one object matches your criteria.
|
109 |
# for example:
|
110 |
|
111 |
-
|
112 |
|
113 |
#[<Video: MPEG-4 Visual (.3gp) - 144p>,
|
114 |
# <Video: MPEG-4 Visual (.3gp) - 240p>,
|
|
|
82 |
yt.set_filename('Dancing Scene from Pulp Fiction')
|
83 |
|
84 |
# You can also filter the criteria by filetype.
|
85 |
+
print(yt.filter('flv'))
|
86 |
|
87 |
# [<Video: Sorenson H.263 (.flv) - 240p>,
|
88 |
# <Video: H.264 (.flv) - 360p>,
|
|
|
95 |
# <Video: H.264 (.mp4) - 720p>
|
96 |
|
97 |
# You can also get all videos for a given resolution
|
98 |
+
print(yt.filter(resolution='480p'))
|
99 |
|
100 |
# [<Video: H.264 (.flv) - 480p>,
|
101 |
# <Video: VP8 (.webm) - 480p>]
|
|
|
108 |
# NOTE: get() can only be used if and only if one object matches your criteria.
|
109 |
# for example:
|
110 |
|
111 |
+
print(yt.videos)
|
112 |
|
113 |
#[<Video: MPEG-4 Visual (.3gp) - 144p>,
|
114 |
# <Video: MPEG-4 Visual (.3gp) - 240p>,
|