Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
doskabouter committed Jan 10, 2025
1 parent 50d4112 commit aae8401
Show file tree
Hide file tree
Showing 4 changed files with 6,178 additions and 6,178 deletions.
34 changes: 17 additions & 17 deletions mediaportal/Databases/Video/IVideoDatabase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace MediaPortal.Video.Database
public interface IVideoDatabase
{
void Dispose();

// Files & Path
int AddFile(int lMovieId, int lPathId, string strFileName);
int GetFile(string strFilenameAndPath, out int lPathId, out int lMovieId, bool bExact);
Expand All @@ -38,7 +38,7 @@ public interface IVideoDatabase
void RemoveFilesForMovie(int lMovieId);
int GetFileId(string strFilenameAndPath);
void GetFilesForMovie(int lMovieId, ref ArrayList movies);

// Genre
int AddGenre(string strGenre1);
void GetGenres(ArrayList genres);
Expand All @@ -48,7 +48,7 @@ public interface IVideoDatabase
void RemoveGenresForMovie(int lMovieId);
string GetGenresForMovie(int lMovieId);
void GetMovieGenres(int lMovieId, ArrayList movieGenres);

// Movie Collection
int AddCollection(string strCollection1);
int GetCollectionId(string movieCollection);
Expand All @@ -65,7 +65,7 @@ public interface IVideoDatabase
void GetMovieCollections(int lMovieId, ArrayList movieCollections);
bool GetMovieCollectionWatchedStatus(string collection, out int percent);
bool GetMovieCollectionWatchedStatus(int collection, out int percent);

// User groups
int AddUserGroup(string userGroup);
void AddUserGroupDescription(string userGroup, string description);
Expand All @@ -87,7 +87,7 @@ public interface IVideoDatabase
bool GetUserGroupWatchedStatus(int group, out int percent);
void UpdateUserGroupWithRule(int ID);
void UpdateUserGroupWithRule(int ID, string suffix);

// Actors
int AddActor(string strActorImdbId, string strActorName);
void GetActors(ArrayList actors);
Expand All @@ -99,18 +99,18 @@ public interface IVideoDatabase
void DeleteActorFromMovie(int movieId, int actorId);
void DeleteActor(string actorImdbId);
void RemoveActorsForMovie(int lMovieId);

// Actor info
void SetActorInfo(int idActor, IMDBActor actor);
void AddActorInfoMovie(int idActor, IMDBActor.IMDBActorMovie movie);
IMDBActor GetActorInfo(int idActor);
string GetActorImdbId(int idActor);

// Bookmarks
void ClearBookMarksOfMovie(string strFilenameAndPath);
void AddBookMarkToMovie(string strFilenameAndPath, float fTime);
void GetBookMarksForMovie(string strFilenameAndPath, ref ArrayList bookmarks);

// Movie info
void SetMovieInfo(string strFilenameAndPath, ref IMDBMovie details);
void SetMovieInfoById(int lMovieId, ref IMDBMovie details);
Expand All @@ -126,7 +126,7 @@ public interface IVideoDatabase
void SetMovieTitleById(int lMovieId, string lmovieTitle, out bool error, out string errorMessage);
void SetMovieSortTitleById(int lMovieId, string lmovieTitle);
void SetMovieSortTitleById(int lMovieId, string lmovieTitle, out bool error, out string errorMessage);

// Stop time & duration
void DeleteMovieStopTime(int iFileId);
int GetMovieStopTime(int iFileId);
Expand All @@ -137,7 +137,7 @@ public interface IVideoDatabase
int GetMovieDuration(int iMovieId);
void SetVideoDuration(int iFileId, int duration);
void SetMovieDuration(int iMovieId, int duration);

// Watched status
void SetMovieWatchedStatus(int iFileId, bool watched, int percent);
void MovieWatchedCountIncrease(int idMovie);
Expand All @@ -146,7 +146,7 @@ public interface IVideoDatabase
void ResetWatchedForAllMoviesInFolder(string folderName);

void DeleteMovie(string strFilenameAndPath);

// User Rating
void SetUserRatingForMovie(int lMovieId, int lUserRating);
int GetUserRatingForMovie(int lMovieId);
Expand All @@ -159,10 +159,10 @@ public interface IVideoDatabase
int GetTitleBDId(int iFileId, out byte[] resumeData);
bool HasSubtitle(string strFilenameAndPath);
void SetThumbURL(int lMovieId, string thumbURL);

// Fanart
void SetFanartURL(int lMovieId, string fanartURL);

// Movies by filters
void GetYears(ArrayList years);
void GetMoviesByGenre(string strGenre1, ref ArrayList movies);
Expand Down Expand Up @@ -207,7 +207,7 @@ public interface IVideoDatabase
void SetDVDLabel(int lMovieId, string strDVDLabel1);
void UpdateCDLabel(IMDBMovie movieDetails, string CDlabel);
string GetDVDLabel(string strFile);

// Blacklisted thumbs
bool IsVideoThumbBlacklisted(string path);
int VideoThumbBlacklist(string path, DateTime expiresOn);
Expand All @@ -218,10 +218,10 @@ public interface IVideoDatabase
// Search
void SearchMoviesByView(string dbField, string dbValue, out ArrayList movies);
void SearchActorsByView(string dbActor, out ArrayList movies, bool director);

// Other
SQLiteResultSet GetResults(string sql);
void ExecuteSQL (string sql, out bool error, out string errorMessage);
void ExecuteSQL(string sql, out bool error, out string errorMessage);
ArrayList ExecuteRuleSQL(string sql, string fieldName, out bool error, out string errorMessage);
string DatabaseName { get; }
void GetVideoFilesMediaInfo(string strFilenameAndPath, ref VideoFilesMediaInfo mediaInfo, bool refresh);
Expand All @@ -235,6 +235,6 @@ public interface IVideoDatabase
void FlushTransactionsToDisk();
void RevertFlushTransactionsToDisk();
bool DbHealth { get; }
string DefaultVideoViewFields {get; }
string DefaultVideoViewFields { get; }
}
}
Loading

0 comments on commit aae8401

Please sign in to comment.