Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/Common/ReNamePlugInUtil.h b/Common/ReNamePlugInUtil.h
- index 597fec0..102eaf6 100644
- --- a/Common/ReNamePlugInUtil.h
- +++ b/Common/ReNamePlugInUtil.h
- @@ -15,6 +15,7 @@ typedef struct _PLUGIN_RESERVE_INFO{
- WCHAR bonDriverName[256]; //使用BonDriverファイル名
- DWORD bonDriverID; //EpgTimerSrv内部でのBonDriver識別ID
- DWORD tunerID; //EpgTimerSrv内部でのチューナー識別ID
- + WCHAR comment[512]; //コメント
- }PLUGIN_RESERVE_INFO;
- //PlugInの名前を取得する
- diff --git a/EpgTimerSrv/EpgTimerSrv/ReserveManager.cpp b/EpgTimerSrv/EpgTimerSrv/ReserveManager.cpp
- index 8a63d30..de38874 100644
- --- a/EpgTimerSrv/EpgTimerSrv/ReserveManager.cpp
- +++ b/EpgTimerSrv/EpgTimerSrv/ReserveManager.cpp
- @@ -1155,6 +1155,7 @@ BOOL CReserveManager::GetReserveDataAll(
- wcscpy_s(info.bonDriverName, 256, itrTune->second.tunerName.c_str());
- info.bonDriverID = (itrTune->second.tunerID & 0xFFFF0000)>>16;
- info.tunerID = itrTune->second.tunerID & 0x0000FFFF;
- + wcscpy_s(info.comment, 512, item->comment.c_str());
- EPG_EVENT_INFO* epgInfo = NULL;
- EPGDB_EVENT_INFO* epgDBInfo;
- diff --git a/EpgTimerSrv/EpgTimerSrv/TunerBankCtrl.cpp b/EpgTimerSrv/EpgTimerSrv/TunerBankCtrl.cpp
- index 8266cf6..460d71d 100644
- --- a/EpgTimerSrv/EpgTimerSrv/TunerBankCtrl.cpp
- +++ b/EpgTimerSrv/EpgTimerSrv/TunerBankCtrl.cpp
- @@ -1584,6 +1584,7 @@ BOOL CTunerBankCtrl::RecStart(LONGLONG nowTime, RESERVE_WORK* reserve, BOOL send
- wcscpy_s(info.bonDriverName, 256, this->bonFileName.c_str());
- info.bonDriverID = (this->tunerID & 0xFFFF0000)>>16;
- info.tunerID = this->tunerID & 0x0000FFFF;
- + wcscpy_s(info.comment, 512, data.comment.c_str());
- EPG_EVENT_INFO* epgInfo = NULL;
- EPGDB_EVENT_INFO* epgDBInfo;
- @@ -1675,6 +1676,7 @@ BOOL CTunerBankCtrl::RecStart(LONGLONG nowTime, RESERVE_WORK* reserve, BOOL send
- wcscpy_s(info.bonDriverName, 256, this->bonFileName.c_str());
- info.bonDriverID = (this->tunerID & 0xFFFF0000)>>16;
- info.tunerID = this->tunerID & 0x0000FFFF;
- + wcscpy_s(info.comment, 512, data.comment.c_str());
- EPG_EVENT_INFO* epgInfo = NULL;
- EPGDB_EVENT_INFO* epgDBInfo;
- @@ -1736,6 +1738,7 @@ BOOL CTunerBankCtrl::RecStart(LONGLONG nowTime, RESERVE_WORK* reserve, BOOL send
- wcscpy_s(info.bonDriverName, 256, this->bonFileName.c_str());
- info.bonDriverID = (this->tunerID & 0xFFFF0000)>>16;
- info.tunerID = this->tunerID & 0x0000FFFF;
- + wcscpy_s(info.comment, 512, data.comment.c_str());
- EPG_EVENT_INFO* epgInfo = NULL;
- EPGDB_EVENT_INFO* epgDBInfo;
- diff --git a/Readme_EpgTimer.txt b/Readme_EpgTimer.txt
- index dead0c2..035b25d 100644
- --- a/Readme_EpgTimer.txt
- +++ b/Readme_EpgTimer.txt
- @@ -994,7 +994,7 @@ $TitleF$ $Title$
- $Title2F$ $Title2$と同内容でファイル名に使用できない記号が存在した場合全角に変換するもの(バッチのみ)
- $Genre$ 番組のジャンル(EPGデータ存在時のみ)(RecName_Macro.dllのみ)
- $Genre2$ 番組の詳細ジャンル(EPGデータ存在時のみ)(RecName_Macro.dllのみ)
- -$AddKey$ EPG自動予約で登録されたキーワード(バッチのみ)
- +$AddKey$ EPG自動予約で登録されたキーワード
- $SubTitle$ サブタイトル(番組内容)(EPGデータ存在時のみ)(RecName_Macro.dllのみ)
- $SubTitle2$ $SubTitle$の内容で「^[##第][0-90123456789]」の検索にヒットした場合のみ(EPGデータ存在時のみ)(RecName_Macro.dllのみ)
- diff --git a/RecName_Macro/RecName_Macro/ConvertMacro.cpp b/RecName_Macro/RecName_Macro/ConvertMacro.cpp
- index 644d559..25cc2fc 100644
- --- a/RecName_Macro/RecName_Macro/ConvertMacro.cpp
- +++ b/RecName_Macro/RecName_Macro/ConvertMacro.cpp
- @@ -77,6 +77,7 @@ BOOL CConvertMacro::Convert(wstring macro, PLUGIN_RESERVE_INFO* info, wstring& c
- wstring strDUS=L"";
- wstring strDUSS=L"";
- wstring strTitle2=L"";
- + wstring strAddKey=L"";
- strTitle = info->eventName;
- @@ -177,6 +178,14 @@ BOOL CConvertMacro::Convert(wstring macro, PLUGIN_RESERVE_INFO* info, wstring& c
- strTitle2 = strSep1;
- }
- + strAddKey = info->comment;
- + if( strAddKey.find(L"EPG自動予約(") != wstring::npos ){
- + Replace(strAddKey, L"EPG自動予約(", L"");
- + strAddKey.erase(strAddKey.length()-1, 1);
- + }else{
- + strAddKey = L"";
- + }
- +
- Replace(convert, L"$Title$", strTitle);
- Replace(convert, L"$SDYYYY$", strSDYYYY);
- Replace(convert, L"$SDYY$", strSDYY);
- @@ -240,6 +249,7 @@ BOOL CConvertMacro::Convert(wstring macro, PLUGIN_RESERVE_INFO* info, wstring& c
- Replace(convert, L"$Title2$", strTitle2);
- Replace(convert, L"$Genre$", L"");
- Replace(convert, L"$Genre2$", L"");
- + Replace(convert, L"$AddKey$", strAddKey);
- Replace(convert, L"$SubTitle$", L"");
- Replace(convert, L"$SubTitle2$", L"");
- Replace(convert, L"¥r¥n", L"");
- diff --git a/RecName_Macro/RecName_Macro/ConvertMacro2.cpp b/RecName_Macro/RecName_Macro/ConvertMacro2.cpp
- index a2ccb15..cf53b1f 100644
- --- a/RecName_Macro/RecName_Macro/ConvertMacro2.cpp
- +++ b/RecName_Macro/RecName_Macro/ConvertMacro2.cpp
- @@ -91,6 +91,7 @@ BOOL CConvertMacro2::Convert(wstring macro, PLUGIN_RESERVE_INFO* info, EPG_EVENT
- wstring strTitle2=L"";
- wstring strGenre=L"";
- wstring strGenre2=L"";
- + wstring strAddKey=L"";
- wstring strSubTitle=L"";
- wstring strSubTitle2=L"";
- @@ -193,6 +194,14 @@ BOOL CConvertMacro2::Convert(wstring macro, PLUGIN_RESERVE_INFO* info, EPG_EVENT
- strTitle2 = strSep1;
- }
- + strAddKey = info->comment;
- + if( strAddKey.find(L"EPG自動予約(") != wstring::npos ){
- + Replace(strAddKey, L"EPG自動予約(", L"");
- + strAddKey.erase(strAddKey.length()-1, 1);
- + }else{
- + strAddKey = L"";
- + }
- +
- if(epgInfo != NULL ){
- if( epgInfo->contentInfo != NULL ){
- if( epgInfo->contentInfo->listSize > 0 ){
- @@ -274,6 +283,7 @@ BOOL CConvertMacro2::Convert(wstring macro, PLUGIN_RESERVE_INFO* info, EPG_EVENT
- Replace(convert, L"$Title2$", strTitle2);
- Replace(convert, L"$Genre$", strGenre);
- Replace(convert, L"$Genre2$", strGenre2);
- + Replace(convert, L"$AddKey$", strAddKey);
- Replace(convert, L"$SubTitle$", strSubTitle);
- Replace(convert, L"$SubTitle2$", strSubTitle2);
- Replace(convert, L"¥r¥n", L"");
- diff --git a/RecName_Macro/RecName_Macro/RecName_PlugIn.h b/RecName_Macro/RecName_Macro/RecName_PlugIn.h
- index 3dda291..6f25843 100644
- --- a/RecName_Macro/RecName_Macro/RecName_PlugIn.h
- +++ b/RecName_Macro/RecName_Macro/RecName_PlugIn.h
- @@ -16,6 +16,7 @@ typedef struct _PLUGIN_RESERVE_INFO{
- WCHAR bonDriverName[256]; //使用BonDriverファイル名
- DWORD bonDriverID; //EpgTimerSrv内部でのBonDriver識別ID
- DWORD tunerID; //EpgTimerSrv内部でのチューナー識別ID
- + WCHAR comment[512]; //コメント
- }PLUGIN_RESERVE_INFO;
- //PlugInの名前を取得する
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement