Skip to content

Commit

Permalink
img lazy
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus Ehrnsperger authored and Markus Ehrnsperger committed Jan 21, 2024
1 parent 8596aee commit 1e5c9f0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion live/js/live/createHtml.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function addTime(s, time) {
function addScraperImageTitle(s, image, pt, title, seasonEpisode, runtime, date, lf) {
// pt: "pt" if m_s_image.width <= m_s_image.height, otherwise= ""
// seasonEpisode: e.g. 3E8 (we will add the missing S ...)
s.a += '<div class=\"thumb\"><img data-src=\"';
s.a += '<div class=\"thumb\"><img loading="lazy" data-src=\"';
if (image.length != 0) {
s.a += '/tvscraper/'
s.a += image
Expand Down
2 changes: 2 additions & 0 deletions recman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,7 @@ template void StringAppendFrameParams<cToSvConcat<255>>(cToSvConcat<255> &s, con
return first->scraperReleaseDate() < second->scraperReleaseDate();
}

/*
int RecordingsItemPtrCompare::compareLC(const char *first, const char *second, int *numEqualChars) {
// if numEqualChars != NULL: Add the number of equal characters to *numEqualChars
bool fe = !first || !first[0]; // is first string empty string?
Expand All @@ -447,6 +448,7 @@ template void StringAppendFrameParams<cToSvConcat<255>>(cToSvConcat<255> &s, con
if (*first ) return 1;
return 0;
}
*/

tCompRec RecordingsItemPtrCompare::getComp(eSortOrder sortOrder) {
switch (sortOrder) {
Expand Down
2 changes: 1 addition & 1 deletion recman.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ template<typename T>
static bool ByAscendingNameSort(const RecordingsItemDirPtr & first, const RecordingsItemDirPtr & second);
static bool BySeason(const RecordingsItemDirPtr & first, const RecordingsItemDirPtr & second);
// helpers
static int compareLC(const char *first, const char *second, int *numEqualChars = NULL); // as std::compare, but compare lower case
// static int compareLC(const char *first, const char *second, int *numEqualChars = NULL); // as std::compare, but compare lower case
static int FindBestMatch(RecordingsItemRecPtr &BestMatch, const std::vector<RecordingsItemRecPtr>::const_iterator & First, const std::vector<RecordingsItemRecPtr>::const_iterator & Last, const RecordingsItemRecPtr & EPG_Entry);

static tCompRec getComp(eSortOrder sortOrder);
Expand Down

0 comments on commit 1e5c9f0

Please sign in to comment.