@@ -14,7 +14,7 @@ Example: The video is called `video.mpg`, the metadata file shall be named `vide
1414
1515## Limitations
1616* Media type 'others' is currently not supported.
17- * Some fields are not yet supported. See list below.
17+ * All known fields are supported in this version ( See list below) .
1818
1919## How to use the code
2020
@@ -34,15 +34,15 @@ Here's an example piece of code. Other examples can be found in the unit test cl
3434 writer = VsMetaMovieEncoder()
3535
3636 info = writer.info
37- info.episodeTitle = 'Nach der Hochzeit'
3837 info.showTitle = 'Kino - Filme'
39- info.setEpisodeDate(date(2021, 3, 8))
38+ info.episodeTitle = 'Nach der Hochzeit'
39+ info.episodeReleaseDate = date(2021, 3, 8)
4040 info.chapterSummary = 'Um die drohende Schließung seines indischen Waisenhauses abzuwenden...'
4141
4242 writeVsMetaFile(os.path.join(os.path.dirname(os.path.realpath(__file__)),'videp.mp4.vsmeta'), writer.encode(info))
4343```
4444
45- The code is available on PyPI and can be installed with command ` pip install vsMetaEncoder ` .
45+ The code will be available on PyPI soon and can be installed with command ` pip install vsMetaCodec ` .
4646
4747
4848# Field mapping
@@ -54,45 +54,50 @@ Here's how to use the vsMetaInfo class for the different media types.
5454To encode the episode of a series, use the ` vsMetaInfo ` class with a ` vsMetaSeriesEncoder ` .
5555Have a look at the test classes to see how it works best. The table below describes how to set the ` vsMetaInfo ` properties.
5656
57- | Field in Video Station | vsMetaInfo property | Remark |
58- | ---------------------------| ---------------------------| --------------------------------------------------------------------------------|
59- | TV Show Name | ` showTitle ` | |
60- | Publishing Date | ` setEpisodeReleaseDate() ` | Use method instead of direct value assignment. |
61- | Episode Title | ` episodeTitle ` | |
62- | Season | ` season ` | If not set, defaulted with publishing year of episode. |
63- | Episode | ` episode ` | If not set, defaulted with week number x 10 plus weekday number (Monday is 1). |
64- | Publishing Date (Episode) | ` setShowDate() ` | Use method instead of direct value assignment. |
65- | Locked | ` episodeLocked ` | |
66- | Summary | ` chapterSummary ` | |
67-
68- Not supported yet:
69-
70- * Classification
71- * Rating
72- * Genre
73- * Cast
74- * Author
57+ | Field in Video Station | vsMetaInfo property | Remark |
58+ | ---------------------------| ---------------------------| -----------------------------------------------------------------------------|
59+ | TV Show Name | ` showTitle ` | assign any tv show name as text of type 'str' |
60+ | Episode Title | ` episodeTitle ` | assign any text of type 'str' |
61+ | Publishing Date | ` episodeReleaseDate ` | assign any date of type 'date' or 'str' in ISO format |
62+ | Season | ` season ` | type int: If not set, defaulted with publishing year of episode. |
63+ | Episode | ` episode ` | type int: If not set, defaulted with week no. x 10 + weekday no. (Monday=1) |
64+ | Publishing Date (Episode) | ` tvshowReleaseDate ` | assign any date of type 'date' or 'str' in ISO format |
65+ | Poster (of Serie) | ` posterImageInfo.image ` | assign a jpg-image as bytestring (the md5-hash is calculated automatically) |
66+ | Locked | ` episodeLocked ` | assign 'True' if 'VideoStation' may not alter the vsmeta file content |
67+ | Summary | ` chapterSummary ` | assign any text of type 'str' |
68+ | Classification | ` classification ` | assign any text of type 'str' |
69+ | Rating | ` rating ` | assign any float value in the range of 0.0. to 10.0 or -1.0 for unknown |
70+ | Cast | ` list.cast[] ` | append 'actor names' of type 'str' to the list |
71+ | Genre | ` list.genre[] ` | append 'genres' of type 'str' to the list, e.g. 'Drama', 'Action' |
72+ | Director | ` list.director[] ` | append 'director names' of type 'str' to the list |
73+ | Writer | ` list.writer[] ` | append 'author names' of type 'str' to the list |
74+ | Poster (of Episode) | ` episodeImageInfo.image ` | assign a jpg-image as bytestring (the md5-hash is calculated automatically) |
75+ | Background (of Serie) | ` backdropImageInfo.image ` | assign a jpg-image as bytestring (the md5-hash is calculated automatically) |
7576
7677## Movies
7778
7879To encode a TV film or movie, use the ` vsMetaInfo ` class with a ` vsMetaMoviesEncoder ` .
7980The property names might be confusing, don't think too much about it - just use them as listed below.
8081
81- | Field in Video Station | vsMetaInfo property | Remark |
82- | ------------------------| ---------------------| ----------------------------------------------------------------------|
83- | Title | ` showTitle ` | |
84- | Short Title | ` episodeTitle ` | |
85- | Publishing Date | ` setEpisodeDate() ` | Use method instead of direct value assignment. |
86- | Locked | ` episodeLocked ` | |
87- | Summary | ` chapterSummary ` | |
88-
89- Not supported yet:
90-
91- * Classification
92- * Rating
93- * Genre
94- * Cast
95- * Author
82+ | Field in Video Station | vsMetaInfo property | Remark |
83+ | ---------------------------| ---------------------------| -----------------------------------------------------------------------------|
84+ | Title | ` showTitle ` | assign any title text of type 'str' |
85+ | Short Title | ` episodeTitle ` | assign any short title text of type 'str' |
86+ | Publishing Date | ` episodeReleaseDate ` | assign any date of type 'date' or 'str' in ISO format |
87+ | Season | ` season ` | N/A - not used, set to 0 |
88+ | Episode | ` episode ` | N/A - not used, set to 0 |
89+ | Publishing Date (Episode) | ` tvshowReleaseDate ` | N/A - not used, set to 1900-01-01 |
90+ | Poster (of Serie) | ` posterImageInfo.image ` | N/A - not used, set to VsImageInfo() |
91+ | Locked | ` episodeLocked ` | assign 'True' if 'VideoStation' may not alter the vsmeta file content |
92+ | Summary | ` chapterSummary ` | assign any text of type 'str' |
93+ | Classification | ` classification ` | assign any text of type 'str' |
94+ | Rating | ` rating ` | assign any float value in the range of 0.0. to 10.0 or -1.0 for unknown |
95+ | Cast | ` list.cast[] ` | append 'actor names' of type 'str' to the list |
96+ | Genre | ` list.genre[] ` | append 'genres' of type 'str' to the list, e.g. 'Drama', 'Action' |
97+ | Director | ` list.director[] ` | append 'director names' of type 'str' to the list |
98+ | Writer | ` list.writer[] ` | append 'author names' of type 'str' to the list |
99+ | Poster (of Movie) | ` episodeImageInfo.image ` | assign a jpg-image as bytestring (the md5-hash is calculated automatically) |
100+ | Background (of Movie) | ` backdropImageInfo.image ` | assign a jpg-image as bytestring (the md5-hash is calculated automatically) |
96101
97102## Media type 'other'
98103
0 commit comments