Compare commits

...

4 Commits

Author SHA1 Message Date
WithoutPants
cc6917f29d Update changelog for bugfix release 2025-03-20 09:13:19 +11:00
WithoutPants
9636ff7c16 Parse scene t value as number not int (#5744) 2025-03-20 08:29:44 +11:00
WithoutPants
81f642b8b8 Fix incorrect URL field in studio exclusions (#5743) 2025-03-20 08:29:32 +11:00
WithoutPants
6f848f7f1c Fix setFromSavedCriterion for TimestampCriterion (#5742) 2025-03-20 08:29:17 +11:00
6 changed files with 17 additions and 6 deletions

View File

@@ -68,7 +68,7 @@ const Changelog: React.FC = () => {
// after new release:
// add entry to releases, using the current* fields
// then update the current fields.
const currentVersion = stashVersion || "v0.28.0";
const currentVersion = stashVersion || "v0.28.1";
const currentDate = buildDate;
const currentPage = V0280;

View File

@@ -720,7 +720,12 @@ const SceneLoader: React.FC<RouteComponentProps<ISceneParams>> = ({
const _setTimestamp = useRef<(value: number) => void>();
const initialTimestamp = useMemo(() => {
return Number.parseInt(queryParams.get("t") ?? "0", 10);
const t = queryParams.get("t");
if (!t) return 0;
const n = Number(t);
if (Number.isNaN(n)) return 0;
return n;
}, [queryParams]);
const [queueTotal, setQueueTotal] = useState(0);

View File

@@ -81,4 +81,4 @@ export const PERFORMER_FIELDS = [
"details",
];
export const STUDIO_FIELDS = ["name", "image", "urls", "parent_studio"];
export const STUDIO_FIELDS = ["name", "image", "url", "parent_studio"];

View File

@@ -20,7 +20,10 @@ const StudioFieldSelect: React.FC<IProps> = ({
}) => {
const intl = useIntl();
const [excluded, setExcluded] = useState<Record<string, boolean>>(
excludedFields.reduce((dict, field) => ({ ...dict, [field]: true }), {})
// filter out fields that aren't in STUDIO_FIELDS
excludedFields
.filter((field) => STUDIO_FIELDS.includes(field))
.reduce((dict, field) => ({ ...dict, [field]: true }), {})
);
const toggleField = (field: string) =>

View File

@@ -25,6 +25,9 @@
### 🐛 Bug fixes
* **[0.28.1]** Fixed scene not playing from sub-second marker position when navigating from markers page. ([#5744](https://github.com/stashapp/stash/pull/5744))
* **[0.28.1]** Fixed URL not being excluded correctly in Studio tagger. ([#5743](https://github.com/stashapp/stash/pull/5743))
* **[0.28.1]** Fixed UI crash when loading saved filter with timestamp criteria. ([#5742](https://github.com/stashapp/stash/pull/5742))
* Fixed errors when scraping stash-box performers with null birthdates. ([#5428](https://github.com/stashapp/stash/pull/5248))
* Fixed video files with identical phashes being merged during scan. ([#5461](https://github.com/stashapp/stash/pull/5461))
* Fixed scraped tags showing the scraped tag name rather than the matched tag name. ([#5462](https://github.com/stashapp/stash/pull/5462))

View File

@@ -1148,8 +1148,8 @@ export class TimestampCriterion extends ModifierCriterion<ITimestampValue> {
value: string | ITimestampValue;
value2?: string;
}) {
this.setFromSavedCriterion(c);
// this.value = decodeRangeValue(c);
super.setFromSavedCriterion(c);
this.value = decodeRangeValue(c);
}
protected encodeValue(): unknown {