Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
medialibrary
Commits
bd9c2bc3
Commit
bd9c2bc3
authored
Jul 03, 2018
by
Hugo Beauzée-Luyssen
Browse files
IShowEpisode: Remove media() getter
parent
136a2ac7
Changes
3
Hide whitespace changes
Inline
Side-by-side
include/medialibrary/IShowEpisode.h
View file @
bd9c2bc3
...
...
@@ -39,7 +39,6 @@ class IShowEpisode
virtual
const
std
::
string
&
shortSummary
()
const
=
0
;
virtual
const
std
::
string
&
tvdbId
()
const
=
0
;
virtual
std
::
shared_ptr
<
IShow
>
show
()
=
0
;
virtual
Query
<
IMedia
>
media
()
=
0
;
};
}
...
...
src/ShowEpisode.cpp
View file @
bd9c2bc3
...
...
@@ -124,13 +124,6 @@ std::shared_ptr<IShow> ShowEpisode::show()
return
m_show
;
}
Query
<
IMedia
>
ShowEpisode
::
media
()
{
static
const
std
::
string
req
=
"FROM "
+
policy
::
MediaTable
::
Name
+
" WHERE show_episode_id = ?"
;
return
make_query
<
Media
,
IMedia
>
(
m_ml
,
"*"
,
req
,
m_id
);
}
void
ShowEpisode
::
createTable
(
sqlite
::
Connection
*
dbConnection
)
{
const
std
::
string
req
=
"CREATE TABLE IF NOT EXISTS "
+
policy
::
ShowEpisodeTable
::
Name
...
...
src/ShowEpisode.h
View file @
bd9c2bc3
...
...
@@ -61,7 +61,6 @@ class ShowEpisode : public IShowEpisode, public DatabaseHelpers<ShowEpisode, pol
virtual
const
std
::
string
&
tvdbId
()
const
override
;
bool
setTvdbId
(
const
std
::
string
&
tvdbId
);
virtual
ShowPtr
show
()
override
;
virtual
Query
<
IMedia
>
media
()
override
;
static
void
createTable
(
sqlite
::
Connection
*
dbConnection
);
static
std
::
shared_ptr
<
ShowEpisode
>
create
(
MediaLibraryPtr
ml
,
int64_t
mediaId
,
unsigned
int
episodeNumber
,
int64_t
showId
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment