1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "tvshowscanner.h"
#include "videofile.h"
#include "library.h"
#include "log.h"
#include <iostream>
TvShowScanner::TvShowScanner(Library& library, QObject* parent) :
MediaScanner(parent),
library(library)
{
}
void TvShowScanner::scanFiles(const QStringList &files, const QDir& dir)
{
foreach(QString file, files) {
if (VideoFile::hasVideoExtension(file)) {
if (gLog.logFilesFound) { qDebug() << "movie file found " << file; }
emit machingFile((dir.absoluteFilePath(file)));
}
}
}