mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-06 21:28:26 +02:00
moviebrowser.cpp: accept covers without appended date/time
patch by FlatTV
Origin commit data
------------------
Commit: bce78c2cff
Author: vanhofen <vanhofen@gmx.de>
Date: 2012-12-18 (Tue, 18 Dec 2012)
Origin message was:
------------------
- moviebrowser.cpp: accept covers without appended date/time
patch by FlatTV
This commit is contained in:
@@ -1235,7 +1235,12 @@ void CMovieBrowser::refreshMovieInfo(void)
|
|||||||
int picw = (int)(((float)16 / (float)9) * (float)m_cBoxFrameInfo.iHeight);
|
int picw = (int)(((float)16 / (float)9) * (float)m_cBoxFrameInfo.iHeight);
|
||||||
int pich = m_cBoxFrameInfo.iHeight;
|
int pich = m_cBoxFrameInfo.iHeight;
|
||||||
std::string fname = getScreenshotName(m_movieSelectionHandler->file.Name);
|
std::string fname = getScreenshotName(m_movieSelectionHandler->file.Name);
|
||||||
logo_ok = (fname != "");
|
if(fname.empty()) {
|
||||||
|
std::string cover = m_movieSelectionHandler->file.Name;
|
||||||
|
cover.replace((cover.length()-18),15,""); //covername without yyyymmdd_hhmmss
|
||||||
|
fname = getScreenshotName(cover);
|
||||||
|
}
|
||||||
|
logo_ok = (!fname.empty());
|
||||||
int flogo_w = 0, flogo_h = 0;
|
int flogo_w = 0, flogo_h = 0;
|
||||||
if(logo_ok) {
|
if(logo_ok) {
|
||||||
g_PicViewer->getSize(fname.c_str(), &flogo_w, &flogo_h);
|
g_PicViewer->getSize(fname.c_str(), &flogo_w, &flogo_h);
|
||||||
|
Reference in New Issue
Block a user