mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-30 22:25:19 +00:00 
			
		
		
		
	[vine] Provide alt_title (Fixes #4448)
This commit is contained in:
		| @@ -118,6 +118,7 @@ class InfoExtractor(object): | |||||||
|  |  | ||||||
|     The following fields are optional: |     The following fields are optional: | ||||||
|  |  | ||||||
|  |     alt_title:      A secondary title of the video. | ||||||
|     display_id      An alternative identifier for the video, not necessarily |     display_id      An alternative identifier for the video, not necessarily | ||||||
|                     unique, but available before title. Typically, id is |                     unique, but available before title. Typically, id is | ||||||
|                     something like "4234987", title "Dancing naked mole rats", |                     something like "4234987", title "Dancing naked mole rats", | ||||||
| @@ -129,7 +130,7 @@ class InfoExtractor(object): | |||||||
|                         * "resolution" (optional, string "{width}x{height"}, |                         * "resolution" (optional, string "{width}x{height"}, | ||||||
|                                         deprecated) |                                         deprecated) | ||||||
|     thumbnail:      Full URL to a video thumbnail image. |     thumbnail:      Full URL to a video thumbnail image. | ||||||
|     description:    One-line video description. |     description:    Full video description. | ||||||
|     uploader:       Full name of the video uploader. |     uploader:       Full name of the video uploader. | ||||||
|     timestamp:      UNIX timestamp of the moment the video became available. |     timestamp:      UNIX timestamp of the moment the video became available. | ||||||
|     upload_date:    Video upload date (YYYYMMDD). |     upload_date:    Video upload date (YYYYMMDD). | ||||||
|   | |||||||
| @@ -17,6 +17,7 @@ class VineIE(InfoExtractor): | |||||||
|             'id': 'b9KOOWX7HUx', |             'id': 'b9KOOWX7HUx', | ||||||
|             'ext': 'mp4', |             'ext': 'mp4', | ||||||
|             'title': 'Chicken.', |             'title': 'Chicken.', | ||||||
|  |             'alt_title': 'Vine by Jack Dorsey', | ||||||
|             'description': 'Chicken.', |             'description': 'Chicken.', | ||||||
|             'upload_date': '20130519', |             'upload_date': '20130519', | ||||||
|             'uploader': 'Jack Dorsey', |             'uploader': 'Jack Dorsey', | ||||||
| @@ -44,6 +45,7 @@ class VineIE(InfoExtractor): | |||||||
|         return { |         return { | ||||||
|             'id': video_id, |             'id': video_id, | ||||||
|             'title': self._og_search_title(webpage), |             'title': self._og_search_title(webpage), | ||||||
|  |             'alt_title': self._og_search_description(webpage), | ||||||
|             'description': data['description'], |             'description': data['description'], | ||||||
|             'thumbnail': data['thumbnailUrl'], |             'thumbnail': data['thumbnailUrl'], | ||||||
|             'upload_date': unified_strdate(data['created']), |             'upload_date': unified_strdate(data['created']), | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Philipp Hagemeister
					Philipp Hagemeister