Changeset 7aae9a0a0b4f7b0956ead1dbaa1ef2268c075df7
- Timestamp:
- 01/26/08 10:13:44
(1 year ago)
- Author:
- William McBrine <wmcbrine@gmail.com>
- git-committer:
- William McBrine <wmcbrine@gmail.com> 1201364024 -0500
- git-parent:
[201c11ba03d5ea416988c3afe2aebfe9ec5317ef]
- git-author:
- William McBrine <wmcbrine@gmail.com> 1201364024 -0500
- Message:
Work correctly with "Recurse=Yes" video requests (made when folders are off).
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r143ca8f |
r7aae9a0 |
|
| 41 | 41 | <ContentType>video/x-tivo-mpeg</ContentType> |
|---|
| 42 | 42 | <AcceptsParams>No</AcceptsParams> |
|---|
| 43 | | <Url>/$quote($name)/$quote($video.name)</Url> |
|---|
| | 43 | <Url>/$quote($container)$quote($video.part_path)</Url> |
|---|
| 44 | 44 | </Content> |
|---|
| 45 | 45 | <CustomIcon> |
|---|
| … | … | |
| 51 | 51 | <ContentType>text/xml</ContentType> |
|---|
| 52 | 52 | <AcceptsParams>No</AcceptsParams> |
|---|
| 53 | | <Url>/TiVoConnect?Command=TVBusQuery&Container=$escape($name)&File=$quote($video.name)</Url> |
|---|
| | 53 | <Url>/TiVoConnect?Command=TVBusQuery&Container=$escape($container)&File=$quote($video.part_path)</Url> |
|---|
| 54 | 54 | </TiVoVideoDetails> |
|---|
| 55 | 55 | </Links> |
|---|
| r201c11b |
r7aae9a0 |
|
| 141 | 141 | |
|---|
| 142 | 142 | videos = [] |
|---|
| | 143 | local_base_path = self.get_local_base_path(handler, query) |
|---|
| 143 | 144 | for file in files: |
|---|
| 144 | 145 | video = VideoDetails() |
|---|
| 145 | 146 | video['name'] = os.path.split(file)[1] |
|---|
| 146 | 147 | video['path'] = file |
|---|
| | 148 | video['part_path'] = file.replace(local_base_path, '', 1) |
|---|
| 147 | 149 | video['title'] = os.path.split(file)[1] |
|---|
| 148 | 150 | video['is_dir'] = self.__isdir(file) |
|---|
| … | … | |
| 155 | 157 | handler.end_headers() |
|---|
| 156 | 158 | t = Template(file=os.path.join(SCRIPTDIR,'templates', 'container.tmpl')) |
|---|
| | 159 | t.container = cname |
|---|
| 157 | 160 | t.name = subcname |
|---|
| 158 | 161 | t.total = total |
|---|
| … | … | |
| 168 | 171 | file = query['File'][0] |
|---|
| 169 | 172 | path = self.get_local_path(handler, query) |
|---|
| 170 | | file_path = os.path.join(path, file) |
|---|
| 171 | | |
|---|
| | 173 | file_path = path + file |
|---|
| | 174 | |
|---|
| 172 | 175 | file_info = VideoDetails() |
|---|
| 173 | 176 | file_info.update(self.__metadata(file_path, tsn)) |
|---|