public virtual void apply (MediaItem item) {}
+ public virtual void filter_sort_criteria (ref string sort_criteria) {}
+
public virtual async MediaObjects? search
(SearchableContainer container,
SearchExpression? expression,
this.sort_criteria = DEFAULT_SORT_CRITERIA;
}
+ if (this.hacks != null) {
+ hacks.filter_sort_criteria (ref this.sort_criteria);
+ }
+
this.validate_sort_criteria ();
if (this.hacks != null) {
}
}
+ public override void filter_sort_criteria (ref string sort_criteria) {
+ sort_criteria = sort_criteria.replace ("+microsoft:sourceURL", "");
+ sort_criteria = sort_criteria.replace (",,", ",");
+ if (sort_criteria.has_prefix (",")) {
+ sort_criteria = sort_criteria.slice (1, sort_criteria.length);
+ }
+ }
+
public override async MediaObjects? search
(SearchableContainer container,
SearchExpression? expression,