Advertisement
Guest User

Untitled

a guest
Feb 14th, 2015
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 5.10 KB | None | 0 0
  1. diff --git a/Common/ReNamePlugInUtil.h b/Common/ReNamePlugInUtil.h
  2. index 597fec0..102eaf6 100644
  3. --- a/Common/ReNamePlugInUtil.h
  4. +++ b/Common/ReNamePlugInUtil.h
  5. @@ -15,6 +15,7 @@ typedef struct _PLUGIN_RESERVE_INFO{
  6.     WCHAR bonDriverName[256];   //使用BonDriverファイル名
  7.     DWORD bonDriverID;          //EpgTimerSrv内部でのBonDriver識別ID
  8.     DWORD tunerID;              //EpgTimerSrv内部でのチューナー識別ID
  9. +   WCHAR comment[512];         //コメント
  10.  }PLUGIN_RESERVE_INFO;
  11.  
  12.  //PlugInの名前を取得する
  13. diff --git a/Document/Readme_EpgTimer.txt b/Document/Readme_EpgTimer.txt
  14. index 1bd9b6e..280e343 100644
  15. --- a/Document/Readme_EpgTimer.txt
  16. +++ b/Document/Readme_EpgTimer.txt
  17. @@ -1003,7 +1003,7 @@ $TitleF$  $Title$
  18.  $Title2F$  $Title2$と同内容でファイル名に使用できない記号が存在した場合全角に変換するもの(バッチのみ)
  19.  $Genre$        番組のジャンル(EPGデータ存在時のみ)(RecName_Macro.dllのみ)
  20.  $Genre2$   番組の詳細ジャンル(EPGデータ存在時のみ)(RecName_Macro.dllのみ)
  21. -$AddKey$   EPG自動予約で登録されたキーワード(バッチのみ)
  22. +$AddKey$   EPG自動予約で登録されたキーワード
  23.  $SubTitle$ サブタイトル(番組内容)(EPGデータ存在時のみ)(RecName_Macro.dllのみ)
  24.  $SubTitle2$    $SubTitle$の内容で「^[##第][0-90123456789]」の検索にヒットした場合のみ(EPGデータ存在時のみ)(RecName_Macro.dllのみ)
  25.  
  26. diff --git a/EpgTimerSrv/EpgTimerSrv/ReserveManager.cpp b/EpgTimerSrv/EpgTimerSrv/ReserveManager.cpp
  27. index c99f900..cfa191c 100644
  28. --- a/EpgTimerSrv/EpgTimerSrv/ReserveManager.cpp
  29. +++ b/EpgTimerSrv/EpgTimerSrv/ReserveManager.cpp
  30. @@ -1101,6 +1101,7 @@ BOOL CReserveManager::GetReserveDataAll(
  31.             wcscpy_s(info.bonDriverName, 256, itrTune->second.tunerName.c_str());
  32.             info.bonDriverID = (itrTune->second.tunerID & 0xFFFF0000)>>16;
  33.             info.tunerID = itrTune->second.tunerID & 0x0000FFFF;
  34. +           wcscpy_s(info.comment, 512, item->comment.c_str());
  35.  
  36.             EPG_EVENT_INFO* epgInfo = NULL;
  37.             EPGDB_EVENT_INFO epgDBInfo;
  38. diff --git a/EpgTimerSrv/EpgTimerSrv/TunerBankCtrl.cpp b/EpgTimerSrv/EpgTimerSrv/TunerBankCtrl.cpp
  39. index dfe3d50..92cdf4c 100644
  40. --- a/EpgTimerSrv/EpgTimerSrv/TunerBankCtrl.cpp
  41. +++ b/EpgTimerSrv/EpgTimerSrv/TunerBankCtrl.cpp
  42. @@ -1567,6 +1567,7 @@ BOOL CTunerBankCtrl::RecStart(LONGLONG nowTime, RESERVE_WORK* reserve, BOOL send
  43.                 wcscpy_s(info.bonDriverName, 256, this->bonFileName.c_str());
  44.                 info.bonDriverID = (this->tunerID & 0xFFFF0000)>>16;
  45.                 info.tunerID = this->tunerID & 0x0000FFFF;
  46. +               wcscpy_s(info.comment, 512, data.comment.c_str());
  47.  
  48.                 EPG_EVENT_INFO* epgInfo = NULL;
  49.                 EPGDB_EVENT_INFO epgDBInfo;
  50. @@ -1658,6 +1659,7 @@ BOOL CTunerBankCtrl::RecStart(LONGLONG nowTime, RESERVE_WORK* reserve, BOOL send
  51.                             wcscpy_s(info.bonDriverName, 256, this->bonFileName.c_str());
  52.                             info.bonDriverID = (this->tunerID & 0xFFFF0000)>>16;
  53.                             info.tunerID = this->tunerID & 0x0000FFFF;
  54. +                           wcscpy_s(info.comment, 512, data.comment.c_str());
  55.  
  56.                             EPG_EVENT_INFO* epgInfo = NULL;
  57.                             EPGDB_EVENT_INFO epgDBInfo;
  58. @@ -1719,6 +1721,7 @@ BOOL CTunerBankCtrl::RecStart(LONGLONG nowTime, RESERVE_WORK* reserve, BOOL send
  59.                             wcscpy_s(info.bonDriverName, 256, this->bonFileName.c_str());
  60.                             info.bonDriverID = (this->tunerID & 0xFFFF0000)>>16;
  61.                             info.tunerID = this->tunerID & 0x0000FFFF;
  62. +                           wcscpy_s(info.comment, 512, data.comment.c_str());
  63.  
  64.                             EPG_EVENT_INFO* epgInfo = NULL;
  65.                             EPGDB_EVENT_INFO epgDBInfo;
  66. diff --git a/RecName_Macro/RecName_Macro/ConvertMacro2.cpp b/RecName_Macro/RecName_Macro/ConvertMacro2.cpp
  67. index 1d77345..3a56024 100644
  68. --- a/RecName_Macro/RecName_Macro/ConvertMacro2.cpp
  69. +++ b/RecName_Macro/RecName_Macro/ConvertMacro2.cpp
  70. @@ -164,6 +164,14 @@ static BOOL ExpandMacro(wstring var, PLUGIN_RESERVE_INFO* info, EPG_EVENT_INFO*
  71.         if( epgInfo != NULL && epgInfo->contentInfo != NULL && epgInfo->contentInfo->listSize > 0 ){
  72.             GetGenreName(epgInfo->contentInfo->nibbleList[0].content_nibble_level_1, epgInfo->contentInfo->nibbleList[0].content_nibble_level_2, ret);
  73.         }
  74. +   }else if( var == L"AddKey" ){
  75. +       ret = info->comment;
  76. +       if( ret.find(L"EPG自動予約(") != wstring::npos ){
  77. +           Replace(ret, L"EPG自動予約(", L"");
  78. +           ret.erase(ret.length()-1, 1);
  79. +       }else{
  80. +           ret = L"";
  81. +       }
  82.     }else if( var == L"SubTitle" ){
  83.         if( epgInfo != NULL && epgInfo->shortInfo != NULL ){
  84.             ret = epgInfo->shortInfo->text_char;
  85. diff --git a/RecName_Macro/RecName_Macro/RecName_PlugIn.h b/RecName_Macro/RecName_Macro/RecName_PlugIn.h
  86. index 3dda291..6f25843 100644
  87. --- a/RecName_Macro/RecName_Macro/RecName_PlugIn.h
  88. +++ b/RecName_Macro/RecName_Macro/RecName_PlugIn.h
  89. @@ -16,6 +16,7 @@ typedef struct _PLUGIN_RESERVE_INFO{
  90.     WCHAR bonDriverName[256];   //使用BonDriverファイル名
  91.     DWORD bonDriverID;          //EpgTimerSrv内部でのBonDriver識別ID
  92.     DWORD tunerID;              //EpgTimerSrv内部でのチューナー識別ID
  93. +   WCHAR comment[512];         //コメント
  94.  }PLUGIN_RESERVE_INFO;
  95.  
  96.  //PlugInの名前を取得する
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement