当前位置: 首页>>代码示例>>PHP>>正文


PHP getid3_id3v1::StandardiseID3v1GenreName方法代码示例

本文整理汇总了PHP中getid3_id3v1::StandardiseID3v1GenreName方法的典型用法代码示例。如果您正苦于以下问题:PHP getid3_id3v1::StandardiseID3v1GenreName方法的具体用法?PHP getid3_id3v1::StandardiseID3v1GenreName怎么用?PHP getid3_id3v1::StandardiseID3v1GenreName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在getid3_id3v1的用法示例。


在下文中一共展示了getid3_id3v1::StandardiseID3v1GenreName方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getid3_asf


//.........这里部分代码省略.........
                             // BOOL
                             $thisfile_asf_extendedcontentdescriptionobject_contentdescriptor_current['value'] = (bool) getid3_lib::LittleEndian2Int($thisfile_asf_extendedcontentdescriptionobject_contentdescriptor_current['value']);
                             break;
                         case 0x3:
                             // DWORD
                         // DWORD
                         case 0x4:
                             // QWORD
                         // QWORD
                         case 0x5:
                             // WORD
                             $thisfile_asf_extendedcontentdescriptionobject_contentdescriptor_current['value'] = getid3_lib::LittleEndian2Int($thisfile_asf_extendedcontentdescriptionobject_contentdescriptor_current['value']);
                             break;
                         default:
                             $ThisFileInfo['warning'][] = 'extended_content_description.content_descriptors.' . $ExtendedContentDescriptorsCounter . '.value_type is invalid (' . $thisfile_asf_extendedcontentdescriptionobject_contentdescriptor_current['value_type'] . ')';
                             //return false;
                             break;
                     }
                     switch ($this->TrimConvert(strtolower($thisfile_asf_extendedcontentdescriptionobject_contentdescriptor_current['name']))) {
                         case 'wm/albumartist':
                         case 'artist':
                             $thisfile_asf_comments['artist'] = array($this->TrimTerm($thisfile_asf_extendedcontentdescriptionobject_contentdescriptor_current['value']));
                             break;
                         case 'wm/albumtitle':
                         case 'album':
                             $thisfile_asf_comments['album'] = array($this->TrimTerm($thisfile_asf_extendedcontentdescriptionobject_contentdescriptor_current['value']));
                             break;
                         case 'wm/genre':
                         case 'genre':
                             $genre = $this->TrimTerm($thisfile_asf_extendedcontentdescriptionobject_contentdescriptor_current['value']);
                             // id3v1 module might not be loaded
                             $GETID3_ERRORARRAY =& $ThisFileInfo['warning'];
                             if (getid3_lib::IncludeDependency(GETID3_INCLUDEPATH . 'module.tag.id3v1.php', __FILE__, false)) {
                                 $CleanedGenre = getid3_id3v1::StandardiseID3v1GenreName($genre);
                                 // convert to standard GenreID and back to standard spelling/capitalization
                                 if ($CleanedGenre != $genre) {
                                     $genre = getid3_lib::iconv_fallback('ISO-8859-1', 'UTF-16LE', $CleanedGenre);
                                 }
                             }
                             $thisfile_asf_comments['genre'] = array($genre);
                             break;
                         case 'wm/tracknumber':
                         case 'tracknumber':
                             $thisfile_asf_comments['track'] = array(intval($this->TrimTerm($thisfile_asf_extendedcontentdescriptionobject_contentdescriptor_current['value'])));
                             break;
                         case 'wm/track':
                             if (empty($thisfile_asf_comments['track'])) {
                                 $thisfile_asf_comments['track'] = array(1 + $this->TrimConvert($thisfile_asf_extendedcontentdescriptionobject_contentdescriptor_current['value']));
                             }
                             break;
                         case 'wm/year':
                         case 'year':
                         case 'date':
                             $thisfile_asf_comments['year'] = array($this->TrimTerm($thisfile_asf_extendedcontentdescriptionobject_contentdescriptor_current['value']));
                             break;
                         case 'isvbr':
                             if ($thisfile_asf_extendedcontentdescriptionobject_contentdescriptor_current['value']) {
                                 $thisfile_audio['bitrate_mode'] = 'vbr';
                                 $thisfile_video['bitrate_mode'] = 'vbr';
                             }
                             break;
                         case 'id3':
                             // id3v2 module might not be loaded
                             if (class_exists('getid3_id3v2')) {
                                 if ($tempfilehandle = tmpfile()) {
                                     $tempThisfileInfo = array('encoding' => $ThisFileInfo['encoding']);
开发者ID:ericaustinlee,项目名称:ribcage,代码行数:67,代码来源:module.audio-video.asf.php


注:本文中的getid3_id3v1::StandardiseID3v1GenreName方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。